pub fn spawn<F, T>(f: F) -> JoinHandle<T> where
F: FnOnce() -> T,
F: 'static,
T: 'static, Expand description
Spawns a cooperative task and returns a JoinHandle for it.
pub fn spawn<F, T>(f: F) -> JoinHandle<T> where
F: FnOnce() -> T,
F: 'static,
T: 'static, Spawns a cooperative task and returns a JoinHandle for it.