Skip to main content

gomaxprocs

Function gomaxprocs 

Source
pub fn gomaxprocs() -> usize
Expand description

Return the current number of logical processors (GOMAXPROCS).

This equals the value set by the GOMAXPROCS environment variable at startup, or set_gomaxprocs, or available_parallelism if neither was provided.