Available on crate feature
tasks only.Expand description
Cooperative cancellation of spawned work.
Structs§
- Cancel
OnDrop - Cancels execution on drop and supports cooperative finalization.
- Manual
Cancel - A marker that can be used to cancel execution.
Functions§
- is_
cancelled - Returns
trueif the work running on the current thread was cancelled.