async_spawn

Function async_spawn 

Source
pub fn async_spawn<T, F, FU>(data: T, f: F) -> Outer<T>
where T: Send + 'static, FU: Future<Output = ()> + Send + 'static, F: FnOnce(Inner<T>) -> FU + Send + 'static,
Expand description

Spawns a new async task, return data warpped in Outer