future

Function future 

Source
pub fn future<F>(future: F) -> TaskFuture<F::Future>
where F: IntoFuture, F::Future: Send,
Expand description

Create a task from a Future.