Sleep v0.1.0

Source
Suspends execution of the current thread.

Package: Windows

Microsoft documentation: Sleep

Signature

func Sleep(milliseconds: uint32);

Parameters

NameTypeDescription
millisecondsuint32Minimum suspension interval.

The actual delay depends on system timer resolution and scheduling. A value of 0 yields the remainder of the thread's time slice to another ready thread.

See also