Crate min_cancel_token[][src]

Modules

Utilities for working with cancellation tokens

Structs

Error type which is returned if a cancellation token is cancelled

A function that will be executed on cancellation

Guard for a registered cancellation function

An implementation of CancellationToken which will never signal the cancelled state

Constants

Traits

A CancellationToken provides information whether a flow of execution is expected to be cancelled.

Functions

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.

Executes a function that gets access to the current cancellation token