Sleep function kernel32

void Sleep(
  1. int dwMilliseconds
)

Suspends the execution of the current thread until the time-out interval elapses.

To learn more, see learn.microsoft.com/windows/win32/api/synchapi/nf-synchapi-sleep.

Implementation

@pragma('vm:prefer-inline')
void Sleep(int dwMilliseconds) => _Sleep(dwMilliseconds);