[][src]Module sync_tokens::cancelation_token

Contains structs to assist in canceling ongoing operations. See CancelationToken or sync-tokens for an example.

Structs

Cancelable

Assists in canceling an asynchronous operation. Typically, this struct is kept private and used with either allow_cancel() or Self::future(). A CancelationToken is given to whoever can cancel operations

CancelationToken

Allows canceling an asynchronous operation. Whoever has a CancelationToken can cancel an operation that uses a Cancelable

CancelationTokenFuture

Future for use with Cancelable