xtd 0.2.0
Loading...
Searching...
No Matches

◆ sleep() [1/2]

static void xtd::threading::thread::sleep ( int32  milliseconds_timeout)
static

Suspends the current thread for a specified time.

Parameters
milliseconds_timeoutThe number of milliseconds for which the thread is blocked. Specify zero (0) to indicate that this thread should be suspended to allow other waiting threads to execute. Specify xtd::threading::Timeout.Infinite to block the thread indefinitely.
Exceptions
xtd::argument_exceptionmilliseconds_timeout is a negative number other than -1, which represents an infinite time-out.