dpromise.utils.timer

Provides implementation of asynchronous timer.

Members

Functions

sleepAsync
Promise!void sleepAsync(Duration dur)

Sleep in asynchronous while dur.

sleepAsyncWithCallback
void sleepAsyncWithCallback(Duration dur, void delegate(Exception) nothrow callback)

Sleep in asynchronous while dur then calls the callback function.

Meta