An `async fn` returns a Future that does nothing until polled by an executor such as tokio or async-std. `.await` yields control while waiting on I/O, allowing thousands of concurrent tasks on few threads. Blocking calls inside async code stall the executor.
← Rust theorytheory 0/50 · 0%
Concurrency · medium
34. Async/Await Basics
Futures are lazy state machines.
Check your understanding
1. A Future starts running when…
2. Blocking inside async code…