Thread Routines
1 node
On this page 1
Sleep
FunctionOverload 1 of 2
Signature
Sleep(millisecondsTimeout: Integer)
void Sleep(int millisecondsTimeout)
Pauses the thread running this code for at least the given number of milliseconds; the real pause is usually a little longer, by up to the system timer's resolution.
Parameters
| name | type | default | description |
|---|---|---|---|
| millisecondsTimeout | Integer | — | How long to pause, in milliseconds. 0 just gives up the rest of the current time slice, -1 (Timeout.Infinite) pauses forever, and anything below -1 throws System.ArgumentOutOfRangeException. |
Overload 2 of 2
Signature
Sleep(timeout: TimeSpan)
void Sleep(TimeSpan timeout)
Pauses the thread running this code for at least the given length of time; the real pause is usually a little longer, by up to the system timer's resolution.
Parameters
| name | type | default | description |
|---|---|---|---|
| timeout | TimeSpan | — | How long to pause. Zero just gives up the rest of the current time slice and -1 millisecond pauses forever; anything below -1 millisecond or above Int32.MaxValue milliseconds (about 24.8 days) throws System.ArgumentOutOfRangeException. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Thread Routines
- Package
- Standard Library