Skip to main content

boxed_task

Function boxed_task 

Source
pub fn boxed_task<F>(f: F) -> Pin<Box<dyn Future<Output = ()> + Send + 'static>>
where F: Future<Output = ()> + Send + 'static,
Expand description

Convenience: schedule a one-shot closure that returns a boxed future.