xSleep method

  1. @override
void xSleep(
  1. Duration duration
)
override

Sleeps for the passed duration.

Implementation

@override
void xSleep(Duration duration) {
  _runInWorker(WorkerOperation.xSleep, Flags(duration.inMilliseconds, 0, 0));
}