Module tokio

Source
Expand description

A component owning the Tokio runtime.

The tokio runtime is used for:

The rayon thread pool is used for:

  • long-running CPU-bound tasks like cryptography, via [rayon::spawn_fifo].

Modules§

imp 🔒

Structs§

TokioComponent
An Abscissa component which owns a Tokio runtime.

Constants§

TOKIO_SHUTDOWN_TIMEOUT 🔒
When Zebra is shutting down, wait this long for tokio tasks to finish.
_DERIVE_Component_A_FOR_TokioComponent 🔒

Traits§

RuntimeRun 🔒
Extension trait to centralize entry point for runnable subcommands that depend on tokio

Functions§

shutdown 🔒
Zebrad’s graceful shutdown function, blocks until one of the supported shutdown signals is received.