sleep

Create a coroutine that completes after a given time. If $(D_PSYMBOL result) is provided, it is produced to the caller when the coroutine completes.

The resolution of the sleep depends on the granularity of the event loop.

@Coroutine
sleep
(
Result...
)
()
if (
result.length <= 1
)

Meta