with_current_cancellation_token

Function with_current_cancellation_token 

Source
pub fn with_current_cancellation_token<R>(
    func: impl FnOnce(&dyn CancellationToken) -> R,
) -> R
Expand description

Executes a function that gets access to the current cancellation token