pub type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;Available on non-WebAssembly only.
Expand description
A boxed future โ the one future alias of the ppoppo family. Send on
every target but wasm32, where the browser runs one thread and a
JsFuture is never Send; a port held as dyn returns it, so one
signature serves both targets.
Aliased Typeยง
#[repr(transparent)]pub struct BoxFuture<'a, T> { /* private fields */ }