TaskScheduler.waitAndProcess

Performs a single round of scheduling, blocking if necessary.

struct TaskScheduler
@safe nothrow
ExitReason
waitAndProcess
()

Return Value

Type: ExitReason

A reason is returned:

  • ExitReason.exit: The event loop was exited due to a manual request
  • ExitReason.outOfWaiters: There are no more scheduled tasks or events, so the application would do nothing from now on
  • ExitReason.idle: All scheduled tasks and pending events have been processed normally

Meta