Expand description
Re-exported from reth_tasks.
Modules§
- 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 expression exactly once per call site.
Structs§
- Lazy
Handle - Handle to a value computed on a background thread.
- Panicked
Task Error - Error with the name of the task that panicked and an error downcasted to string, if possible.
- 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. - Task
Manager - Monitors critical tasks for panics and manages graceful shutdown.
- Worker
- Per-thread state container for a
WorkerPool. - Worker
Pool - A rayon thread pool with per-thread
Workerstate.
Enums§
- Runtime
Build Error - Error returned when
RuntimeBuilder::buildfails. - Tokio
Config - Configuration for the tokio runtime.
Traits§
- ForEach
Ordered - Extension trait for [
IndexedParallelIterator] that streams results to a sequential consumer in index order.
Functions§
- spawn_
os_ thread - Spawns an OS thread with the current tokio runtime context propagated.
- spawn_
scoped_ os_ thread - Spawns a scoped OS thread with the current tokio runtime context propagated.
Type Aliases§
- Task
Executor - A
TaskExecutoris now an alias forRuntime.