Skip to content

TimeoutAttribute

1 min read

Import: import system.testing;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

TimeoutAttribute

Fails a @test function that runs longer than this many milliseconds. Tests have no timeout unless they declare one.

public struct TimeoutAttribute

milliseconds

Timeout or interval in milliseconds.

public milliseconds: int