Function moc::init_par

source · []
pub fn init_par(num_threads: usize) -> Result<(), ThreadPoolBuildError>
Expand description

Init the number of threads for parallel tasks. Must be called only once! If not called, the default number of threads is the number of physical core. See rayon doc