Async runtime and futures
Get started with async Rust and Tokio: understand futures, async/await, ownership, and runtime setup with small code examples.
Rust ownership, futures, tasks, channels, networking, testing, and graceful shutdown with Tokio.
6 chapters · 26 topics
Get started with async Rust and Tokio: understand futures, async/await, ownership, and runtime setup with small code examples.
Use tokio::spawn, select!, mpsc, and oneshot to coordinate async tasks. Examples cover shared state, timeouts, and cancellation.
Read and buffer files with Tokio, then build a TCP echo server and client. Rust examples use AsyncReadExt, AsyncWriteExt, and TcpListener.
Shut down a Tokio TCP server gracefully and test async code with controlled time. Examples cover cancellation and task cleanup.
Use Tokio signals, child processes, UDP, semaphores, watch, and broadcast. Handle blocking work and non-Send tasks with Rust examples.
Avoid blocking the Tokio runtime, holding locks across await, and leaking tasks. Look up feature flags and async Rust patterns.
Allow Google Analytics to measure page visits and use of the guides? It uses cookies after you accept. Your choice won’t affect access to the site. Privacy notice