Skip to main content

worker_threads_for_available

Function worker_threads_for_available 

Source
pub fn worker_threads_for_available(
    configured_threads: Option<usize>,
    available_threads: usize,
) -> usize
Expand description

Caps an explicit positive worker count to available parallelism, or uses half the available threads with a minimum target of two.