vibe.d beta banner
get vibe.d
0.8.0

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

Function DriverCore.yieldAndResumeTask

Yields the current task and resumes another one.

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

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.

Throws

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

See also

resumeTask

Authors

Sönke Ludwig

Copyright

© 2012-2015 RejectedSoftware e.K.

License

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