Skip to main content

BoxFuture

Type Alias BoxFuture 

Source
pub type BoxFuture<T> = Pin<Box<dyn Future<Output = T> + Send + 'static>>;
Expand description

An owned, sendable future: what a Runtime spawns and sleeps on.

Aliased Typeยง

#[repr(transparent)]
pub struct BoxFuture<T> { /* private fields */ }