Skip to main content

CancelledFuture

Type Alias CancelledFuture 

Source
pub type CancelledFuture<'a> = Pin<Box<dyn Future<Output = ()> + Send + 'a>>;
Expand description

A future that resolves when a CancellationToken is cancelled. Runtime-neutral: it is a plain boxed Future, so an engine can select! it against its own async reads without Kernel taking on any async-runtime dependency.

Aliased Typeยง

#[repr(transparent)]
pub struct CancelledFuture<'a> { /* private fields */ }