Function loom::thread::spawn

source ·
pub fn spawn<F, T>(f: F) -> JoinHandle<T>where
    F: FnOnce() -> T,
    F: 'static,
    T: 'static,
Expand description

Mock implementation of std::thread::spawn.