🦀
⚡
Deep Dive

Async Rust

Tokio, streams, cancellation safety — master the async ecosystem from futures to production.

4 parts17 chapters
Start Reading

For Intermediate Rustaceans

Table of Contents

0Introduction
Part I: How Async Works
1. Why Async is Different in Rust
2. The Future Trait
3. How Poll Works
4. Pin and Unpin
5. The State Machine Reveal
Part II: The Ecosystem
6. Building Futures by Hand
7. Executors and Runtimes
8. Tokio Deep Dive
9. When Tokio Isn't the Right Fit
10. Async Traits
Part III: Production Async
11. Streams and AsyncIterator
12. Common Pitfalls
13. Production Patterns
14. Exercises
Appendices
Summary and Reference Card
Capstone Project: Async Chat Server

microsoft/RustTraining — MIT & CC BY 4.0

@KhandakarRuhanv3.2.1