Modules§
Structs§
- Cancellation
Error - Error type which is returned if a cancellation token is cancelled
- Cancellation
Func - A function that will be executed on cancellation
- Cancellation
Guard - Guard for a registered cancellation function
- Cancellation
Guard Vtable - Uncancellable
Token - An implementation of
CancellationToken
which will never signal the cancelled state
Constants§
Traits§
- Cancellation
Token - A
CancellationToken
provides information whether a flow of execution is expected to be cancelled.
Functions§
- with_
cancellation_ token - Replaces the currently active (thread-local) cancellation token with the provided one, and executes the given function. Once the scope ends, the current cancellation token will be reset to the previous one.
- with_
current_ cancellation_ token - Executes a function that gets access to the current cancellation token