spawn_bg

Function spawn_bg 

pub fn spawn_bg<F, R>(runtime: &Runtime, background: F) -> JoinHandle<R> 
where F: Future<Output = R> + Send + 'static, R: Send + 'static,
Available on crate feature dns and crate feature std and (crate features tokio) only.
Expand description

Spawn a background task, if it was present