[][src]Type Definition maybe_sync::BoxFuture

type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + 'a>>;
This is supported on feature="alloc" only.

An owned dynamically typed Future for use at return position in cases when type is opaque and existential type cannot be used, or when multiple types can be returned.

A type alias equal to futures::future::BoxFuture when "sync" feature is enabled.
A type alias equal to futures::future::LocalBoxFuture when "sync" feature is not enabled.