Skip to main content

Module cancel

Module cancel 

Source
Available on crate feature tasks only.
Expand description

Cooperative cancellation of spawned work.

Structs§

CancelOnDrop
Cancels execution on drop and supports cooperative finalization.
ManualCancel
A marker that can be used to cancel execution.

Functions§

is_cancelled
Returns true if the work running on the current thread was cancelled.