Function spawn

Source
pub fn spawn<F, R>(f: F) -> Vec<R>
where F: Fn() -> R + Copy + Send, R: Send,
Expand description

Spawn n scoped threads, where n is the available parallelism.