vibe.d beta banner
get vibe.d
0.7.30

Function DriverCore.yieldAndResumeTask

Yields the current task and resumes another one.

This is the same as resumeTask, but also works from within a task. If called from a task, that task will be yielded first before resuming the other one.

Prototype

abstract void yieldAndResumeTask(
  Task task,
  Exception event_exception = null
) @safe;

Throws

May throw an InterruptException if the calling task gets interrupted using Task.interrupt().

See also

resumeTask

block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License