Skip to main content

Crate adze_concurrency_init_bootstrap_core

Crate adze_concurrency_init_bootstrap_core 

Source
Expand description

Single-responsibility bootstrap for concurrency caps initialization.

Structs§

ConcurrencyCaps
Snapshot of active concurrency cap values.

Constants§

DEFAULT_RAYON_NUM_THREADS
Default thread count used for Rayon when RAYON_NUM_THREADS is unset/invalid.
DEFAULT_TOKIO_WORKER_THREADS
Default worker count used for Tokio when TOKIO_WORKER_THREADS is 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.