8.6 Cancellation and deadlines
- Cancellation is cooperative: a cancelled task receives
Cancelledfrom the nearest suspension point.defers and destructors are executed. shield { … }protects a block from cancellation (for finalisation); its duration is limited by the implementation'sSHIELD_MAX(5 s by default).- The task context
ctxcontains a deadline.within dsetsmin(ctx.deadline, now + d). Child tasks and outgoing rpcs inherit the deadline; over the network it is passed in the headergrpc-timeout.
Source: docs/spec/oxl-standard.en.md