Expand description
Reth task management.
Blocking concurrency primitives are provided by [reth_concurrency::sync].
§Feature Flags
rayon: Enable native task-management helpers for rayon thread pools.fuzz: Enable simulation support; primitives remain native unless--cfg dstis also set. With both enabled, threads, selected channels, pools, and time use the deterministic backend. Existing Tokio channels remain native and are not controlled by Shuttle.
Re-exports§
pub use pool::build_pool_with_panic_handler;rayonpub use pool::Worker;rayonpub use pool::WorkerPool;rayonpub use pool::WorkerStatefulPool;rayonpub use for_each_ordered::ForEachOrdered;rayonpub use cancel::CancelOnDrop;pub use cancel::ManualCancel;pub use lazy::LazyHandle;pub use runtime::RayonConfig;rayonpub use runtime::Runtime;pub use runtime::RuntimeBuildError;pub use runtime::RuntimeBuilder;pub use runtime::RuntimeConfig;pub use runtime::TokioConfig;
Modules§
- cancel
- Cooperative cancellation of spawned work.
- for_
each_ ordered rayon - Lock-free ordered parallel iterator extension trait.
- lazy
- A lazily-resolved handle to a value computed on a background thread.
- metrics
- Task Executor Metrics
- pool
rayon - Additional helpers for executing tracing calls
- runtime
- Centralized management of async and parallel execution.
- shutdown
- Helper for shutdown signals
- utils
- Task utility functions.
Macros§
- once
- Runs the given closure exactly once per call site.
Structs§
- Panicked
Task Error - Error with the name of the task that panicked and an error downcasted to string, if possible.
- Task
Manager - Monitors critical tasks for panics and manages graceful shutdown.
Functions§
- spawn_
blocking - Spawns a blocking closure on the current tokio runtime, like [
tokio::task::spawn_blocking]. - spawn_
os_ thread Not ( dstandfuzz) - Spawns a thread on the selected blocking backend.
- spawn_
scoped_ os_ thread Not ( dstandfuzz) - Spawns a scoped thread on the selected blocking backend.
- spawn_
scoped_ thread - Spawns a scoped thread on the selected blocking backend.
- spawn_
thread - Spawns a thread on the selected blocking backend.
Type Aliases§
- Task
Executor - A
TaskExecutoris now an alias forRuntime.