zebrad::components

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§

Structs§

Constants§

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.