[−][src]Type Definition futures_lite::future::BoxedLocal
type BoxedLocal<T> = Pin<Box<dyn Future<Output = T>>>;
Type alias for Pin<Box<dyn Future<Output = T>>>
.
Examples
use futures_lite::*; // These two lines are equivalent: let f1: future::BoxedLocal<i32> = async { 1 + 2 }.boxed_local(); let f2: future::BoxedLocal<i32> = Box::pin(async { 1 + 2 });