vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Function sleepUninterruptible

Suspends the execution of the calling task an an uninterruptible manner.

void sleepUninterruptible (
  core.time.Duration timeout
) nothrow @safe;

This function behaves the same as sleep, except that invoking Task.interrupt on the calling task will not result in an InterruptException being thrown from sleepUninterruptible. Instead, if any, a later interruptible wait state will throw the exception.


Sönke Ludwig


© 2012-2020 Sönke Ludwig


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.