aoc::util::thread

Function spawn

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

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