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,
Expand description

Spawn a background task, if it was present