Sleep function Null safety kernel32

void Sleep(
  1. int dwMilliseconds
)

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

void Sleep(
  DWORD dwMilliseconds
);

Implementation

void Sleep(int dwMilliseconds) {
  final _Sleep = _kernel32.lookupFunction<Void Function(Uint32 dwMilliseconds),
      void Function(int dwMilliseconds)>('Sleep');
  return _Sleep(dwMilliseconds);
}