Skip to main content

init_parallelism

Function init_parallelism 

Source
pub fn init_parallelism(num_threads: Option<usize>)
Expand description

Initializes the Rayon thread pool. If num_threads is Some(n), it sets that specific number. If num_threads is None, it checks RAYON_NUM_THREADS env var or defaults to 4.