Skip to main content

process_core_width

Function process_core_width 

Source
pub fn process_core_width() -> usize
Expand description

The process’s core budget for executor parallelism.

Returns the published width when the launcher set one; otherwise (unit tests, batch tools, library embeddings — contexts whose threads are not pinned) falls back to available_parallelism(), which is correct for them.