pub fn task<P: 'static, R: 'static, F: FnOnce(P) -> R>( f: F, param: P, ) -> JoinHandle<R>
Create a task.