Module tokio_util::sync::cancellation_token
source · Expand description
An asynchronously awaitable CancellationToken
.
The token allows to signal a cancellation request to one or more tasks.
Modules§
- guard 🔒
- This mod provides the logic for the inner tree structure of the
CancellationToken
.
Structs§
- A token which can be used to signal a cancellation request to one or more tasks.
- A Future that is resolved once the corresponding
CancellationToken
is cancelled. - A Future that is resolved once the corresponding
CancellationToken
is cancelled.