//! module cancel - Shared cancellation error helpers.
//!
//! Long-running async Workers use a typed error instead of string matching so
//! callers can reliably distinguish user-requested cancellation from a real
//! failure.
use Error;
use Error;
// ---------------------------------------------- Types ----------------------------------------- //
/// Typed error returned when a batch Worker is cancelled.
;
// ----------------------------------------- Public API ----------------------------------------- //
/// Returns true when an `anyhow::Error` represents a cooperative cancellation.