Function thread

Source
pub fn thread<C, F>(closure: C)
where F: Future<Output = ()> + 'static, C: FnOnce(Coroutine) -> F,