pub fn spawn<F, T>(f: F) -> JoinHandle<T>where
F: FnOnce() -> T + 'static,
T: 'static,Expand description
Mock implementation of std::thread::spawn.
Note that you may only have MAX_THREADS threads in a given loom tests
including the main thread.