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