Skip to main content

num_threads

Function num_threads 

Source
pub fn num_threads() -> usize
Expand description

Total Rayon worker count (configured from [RuntimeConfig::pool_workers]).

On wasm there is no thread pool — the browser is single-threaded — so this is always 1.