SleepEx function kernel32
Suspends the current thread until the specified condition is met.
To learn more, see learn.microsoft.com/windows/win32/api/synchapi/nf-synchapi-sleepex.
Implementation
@pragma('vm:prefer-inline')
int SleepEx(int dwMilliseconds, bool bAlertable) =>
_SleepEx(dwMilliseconds, bAlertable ? TRUE : FALSE);