Expand description
Centralized management of async and parallel execution.
This module provides Runtime, a cheaply cloneable handle that manages:
- Tokio runtime (either owned or attached)
- Task spawning with shutdown awareness and panic monitoring
- Dedicated rayon thread pools for different workloads (with
rayonfeature) BlockingTaskGuardfor rate-limiting expensive operations (withrayonfeature)
Structs§
- Rayon
Config rayon - Configuration for the rayon thread pools.
- Runtime
- A cheaply cloneable handle to the runtime resources.
- Runtime
Builder - Builder for constructing a
Runtime. - Runtime
Config - Configuration for building a
Runtime.
Enums§
- Runtime
Build Error - Error returned when
RuntimeBuilder::buildfails. - Tokio
Config - Configuration for the tokio runtime.
Constants§
- DEFAULT_
MAX_ BLOCKING_ TASKS - Default maximum number of concurrent blocking tasks (for RPC tracing guard).
- DEFAULT_
RESERVED_ CPU_ CORES - Default reserved CPU cores for OS and other processes.
- DEFAULT_
STORAGE_ POOL_ THREADS - Default number of threads for the storage I/O pool.
- DEFAULT_
THREAD_ KEEP_ ALIVE - Default thread keep-alive duration for the tokio runtime.