Expand description
A component owning the Tokio runtime.
The tokio runtime is used for:
- non-blocking async tasks, via
Future
s and - blocking network and file tasks, via
spawn_blocking
.
The rayon thread pool is used for:
- long-running CPU-bound tasks like cryptography, via [
rayon::spawn_fifo
].
Modules§
- imp 🔒
Structs§
- Tokio
Component - 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_ Tokio Component
Traits§
- Runtime
Run 🔒 - 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.