Suspends the execution of the calling task for the specified amount of time.
void sleep (
.time .Duration timeout
Note that other tasks of the same thread will continue to run during the
wait time, in contrast to
core, which shouldn't be
used in vibe.d applications.
As this method creates a new
Timer every time, it is not recommended to
use it in a tight loop. For functions that calls
it is preferable to instantiate a single
Timer and reuse it,
as shown in the following example:
May throw an
InterruptException if the task gets interrupted using