Skip to main content

configure_thread_pool

Function configure_thread_pool 

Source
pub fn configure_thread_pool(num_threads: usize) -> Result<()>
Expand description

Configure the global Rayon thread pool.

Call this once at startup to control the number of worker threads. If not called, Rayon defaults to the number of logical CPUs.

ยงErrors

Returns an error if the thread pool has already been initialized.