Skip to main content

cpu_count

Function cpu_count 

Source
pub fn cpu_count() -> usize
Expand description

Get the number of available CPU cores.

Uses std::thread::available_parallelism(), falling back to 1.