pub type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + 'a>>;Expand description
A heap-allocated, type-erased future.
Intentionally non-Send on all targets. This keeps the library usable on
single-threaded runtimes (ICP, WASM) without pulling in extra constraints.
If you need a Send future on native, wrap at the call site.
Aliased Typeยง
#[repr(transparent)]pub struct BoxFuture<'a, T> { /* private fields */ }