8 Async Rust
This chapter covers
- Thinking asynchronously: an overview of async programming
- Exploring Rust’s async runtimes
- Handling async task results with futures
- Mixing sync and async
- Using the
async
and.await
features - Managing concurrency and parallelism with async
- Implementing an async observer
- Understanding when to avoid using async
- Tracing and debugging async code
- Dealing with async when testing
Concurrency is an important concept in computing, and it’s one of the greatest force multipliers of computers. Concurrency allows us to process inputs and outputs—such as data, network connections, or peripherals—faster than we might be able to without concurrency. And it’s not always about speed but also latency, overhead, and system complexity. ...
Get Code Like a Pro in Rust now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.