Module cancellation_token

Source
Expand description

An asynchronously awaitable CancellationToken. The token allows to signal a cancellation request to one or more tasks.

Modulesยง

guard ๐Ÿ”’
guard_ref ๐Ÿ”’
tree_node ๐Ÿ”’
This mod provides the logic for the inner tree structure of the CancellationToken.

Structsยง

CancellationToken
A token which can be used to signal a cancellation request to one or more tasks.
RunUntilCancelledFuture ๐Ÿ”’
A Future that is resolved once the corresponding CancellationToken is cancelled or a given Future gets resolved. It is biased towards the Future completion.
RunUntilCancelledFutureOwned ๐Ÿ”’
A Future that is resolved once the corresponding CancellationToken is cancelled or a given Future gets resolved. It is biased towards the Future completion.
WaitForCancellationFuture
A Future that is resolved once the corresponding CancellationToken is cancelled.
WaitForCancellationFutureOwned
A Future that is resolved once the corresponding CancellationToken is cancelled.