Function loom::thread::spawn [−][src]
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
.
Note that you may only have MAX_THREADS
threads in a given loom tests
including the main thread.