Task Failure¶
Import: import system.task;
Read the structured concurrency guide for lifetimes, cancellation, backpressure, and worker execution.
TaskFailure¶
Preserves application errors while distinguishing structured cancellation and deadlines.
Failed¶
A child or the scope body returned an application error.
Cancelled¶
The parent or caller requested cancellation.
TimedOut¶
The scope deadline expired before all work completed.
WorkerFailed¶
A worker rejected a submitted job or crashed before replying; the error says which.
InvalidOperation¶
A concurrency limit or scope operation was invalid.