Skip to main content

configure_thread_pool

Function configure_thread_pool 

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

Configure the global rayon thread pool with the given number of threads.

Returns Ok(()) on success. Calling this more than once (after the pool is already initialized) returns an error which callers may ignore.