hibernate

Suspends the execution of the calling task until switchToTask is called manually.

This low-level scheduling function is usually only used internally. Failure to call switchToTask will result in task starvation and resource leakage.

@safe nothrow
void
hibernate
(
scope void delegate
()
@safe nothrow
on_interrupt = null
)

Parameters

on_interrupt void delegate
()
@safe nothrow

If specified, is required to

See Also

switchToTask

Meta