SleepEx function kernel32

int SleepEx(
  1. int dwMilliseconds,
  2. bool bAlertable
)

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);