Function hibernate
Suspends the execution of the calling task until switchToTask
is called
manually.
void hibernate
(
scope nothrow @safe void delegate() on_interrupt = cast(void delegate() nothrow @safe)null
) nothrow @safe;
This low-level scheduling function is usually only used internally. Failure
to call switchToTask
will result in task starvation and resource leakage.
Parameters
Name | Description |
---|---|
on_interrupt | If specified, is required to |