Crate smol_cancellation_token

Crate smol_cancellation_token 

Source
Expand description

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

Structsยง

CancellationToken
A token which can be used to signal a cancellation request to one or more tasks.
WaitForCancellationFuture
A Future that is resolved once the corresponding CancellationToken is cancelled.
WaitForCancellationFutureOwned
A Future that is resolved once the corresponding CancellationToken is cancelled.