Skip to content

Glossary: Rust Beyond the Basics

Tokio

Also written: tokio, #[tokio::main], tokio::join!

Rust's most used async runtime. `#[tokio::main]` starts it, `tokio::join!` waits for several futures at once, and `tokio::time::sleep` pauses without blocking the thread.

Where the book teaches it

Related terms

runtimetaskfuture