vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

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

NameDescription
on_interrupt If specified, is required to

See Also

switchToTask

Authors

Sönke Ludwig

Copyright

© 2012-2020 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.