TaskScheduler.process

Performs a single round of scheduling without blocking.

This will execute scheduled tasks and process events from the event queue, as long as possible without having to wait.

struct TaskScheduler
@safe nothrow
ExitReason
process
()

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
  • ExitReason.timeout: Scheduled tasks have been processed, but there were no pending events present.

Meta