Skip to main content

Crate reth_tasks

Crate reth_tasks 

Source
Expand description

Reth task management.

§Feature Flags

  • rayon: Enable rayon thread pool for blocking tasks.

Re-exports§

pub use pool::Worker;rayon
pub use pool::WorkerPool;rayon
pub use for_each_ordered::ForEachOrdered;rayon
pub use lazy::LazyHandle;
pub use runtime::RayonConfig;rayon
pub use runtime::Runtime;
pub use runtime::RuntimeBuildError;
pub use runtime::RuntimeBuilder;
pub use runtime::RuntimeConfig;
pub use runtime::TokioConfig;

Modules§

for_each_orderedrayon
Lock-free ordered parallel iterator extension trait.
lazy
A lazily-resolved handle to a value computed on a background thread.
metrics
Task Executor Metrics
poolrayon
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§

PanickedTaskError
Error with the name of the task that panicked and an error downcasted to string, if possible.
TaskManager
Monitors critical tasks for panics and manages graceful shutdown.

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§

TaskExecutor
A TaskExecutor is now an alias for Runtime.