Expand description
Single-responsibility bootstrap for concurrency caps initialization.
Structs§
- Concurrency
Caps - Snapshot of active concurrency cap values.
Constants§
- DEFAULT_
RAYON_ NUM_ THREADS - Default thread count used for Rayon when
RAYON_NUM_THREADSis unset/invalid. - DEFAULT_
TOKIO_ WORKER_ THREADS - Default worker count used for Tokio when
TOKIO_WORKER_THREADSis unset/invalid. - RAYON_
NUM_ THREADS_ ENV - Environment variable used for Rayon global thread-pool caps.
- TOKIO_
WORKER_ THREADS_ ENV - Environment variable used for Tokio worker-thread caps.
Functions§
- init_
concurrency_ caps - Initialize concurrency caps by reading the current process environment.
- init_
concurrency_ caps_ with_ caps - Initialize concurrency caps using an explicit configuration.