heim_cpu

Function physical_count

Source
pub fn physical_count() -> impl Future<Output = Result<Option<u64>>>
Expand description

Returns future which will resolve into a amount of physical CPUs.

Returned future might resolve into Ok(None) if the amount can’t be determined.