Skip to main content

Module cancel

Module cancel 

Source
Expand description

Cooperative cancellation plumbing (ADR-0007).

Cancellation is cooperative at batch boundaries: the orchestrator checks the token before opening sessions and before each batch; engines receive it through crate::engine::EngineSession::run_batch and may honor it at finer grain when they can. The token is re-exported here so engines and the CLI share one type without depending on tokio-util directly — it is runtime-agnostic (no tokio runtime enters the dependency tree; default-features = false).

Structs§

CancellationToken
A token which can be used to signal a cancellation request to one or more tasks.