Expand description
Cancellation support for long-running CLI and workflow operations.
The cancel helper installs a Ctrl+C handler once per process and exposes a lightweight check that higher layers can call before expensive work.
Structs§
- Cancellation
Error - Error returned when an operation is interrupted by cancellation.
Functions§
- check
- Return an error when the process has been cancelled.
- init_
handler - Install the process-wide Ctrl+C handler once.
- is_
cancelled - Return
truewhen the process has observed cancellation.