Skip to main content

CancellationSignal

Trait CancellationSignal 

Source
pub trait CancellationSignal: Send + Sync {
    // Required method
    fn is_cancelled(&self) -> bool;
}
Expand description

Cooperative cancellation interface for workflow runs.

Required Methods§

Source

fn is_cancelled(&self) -> bool

Returns true if execution should stop.

Implementations on Foreign Types§

Source§

impl CancellationSignal for bool

Source§

impl CancellationSignal for AtomicBool

Implementors§