pub fn available_parallelism() -> Result<NonZero<usize>>
Expand description
Returns an estimate of the default amount of parallelism a program should use.
Here we directly return the number of available logical CPUs, representing the theoretical maximum parallelism.