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 runtime::RayonConfig;rayon
pub use runtime::Runtime;
pub use runtime::RuntimeBuildError;
pub use runtime::RuntimeBuilder;
pub use runtime::RuntimeConfig;
pub use runtime::TokioConfig;

Modules§

metrics
Task Executor Metrics
poolrayon
Additional helpers for executing tracing calls
runtime
Centralized management of async and parallel execution.
shutdown
Helper for shutdown signals

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.
TokioTaskExecutor
An TaskSpawner that uses [tokio::task::spawn] to execute tasks

Traits§

TaskSpawner
A type that can spawn tasks.
TaskSpawnerExt
TaskSpawner with extended behaviour

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.