Skip to main content

box_future

Function box_future 

Source
pub fn box_future<'a, Fut>(fut: Fut) -> BoxFuture<'a, Fut::Output>
where Fut: Future + 'a, Fut::Output: 'a,
Expand description

Heap-pin a future as BoxFuture (single allocation; coerces to dyn Future).