Expand description
Compatibility façade for adze-concurrency-env-contract-core.
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§
- current_
caps - Return the current caps resolved from environment values.
- parse_
positive_ usize_ or_ default - Parse an optional positive integer value, falling back to
default.