Expand description
Contract-focused re-export layer for concurrency caps utilities.
Structs§
- Concurrency
Caps - Snapshot of active concurrency cap values.
- Parallel
Partition Plan - Planning metadata for bounded parallel partitioning.
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§
- bounded_
parallel_ map - Run a bounded parallel map operation.
- current_
caps - Return the current caps resolved from environment values.
- init_
concurrency_ caps - Initialize concurrency caps by reading the current process environment.
- init_
rayon_ global_ once - Initialize Rayon global thread-pool once for the current process.
- is_
already_ initialized_ error - Return whether the provided message represents a Rayon global-pool already-initialized error.
- normalized_
concurrency - Normalize a requested concurrency value.
- parse_
positive_ usize_ or_ default - Parse an optional positive integer value, falling back to
default.