Function get_available_parallelism

Source
pub fn get_available_parallelism() -> usize
Expand description

Returns the estimated number of threads available for parallel execution.

This is a wrapper around std::thread::available_parallelism, providing a default value of 1 if the system’s parallelism cannot be determined.