Skip to main content

box_future

Function box_future 

Source
pub fn box_future<'fut, F>(
    future: F,
) -> Pin<Box<dyn Future<Output = <F as Future>::Output> + Send + 'fut>>
where F: Future + Send + 'fut,
Expand description

Helper to box an async block as BoxFuture.