Files
100-exercises-to-learn-rust/book/src/08_futures/00_intro.md
Luca Palmieri 99591a715e Formatter (#51)
Enforce consistent formatting use `dprint`
2024-05-24 17:00:03 +02:00

508 B
Raw Blame History

Async Rust

Threads are not the only way to write concurrent programs in Rust.
In this chapter well explore another approach: asynchronous programming.

In particular, youll get an introduction to:

  • The async/.await keywords, to write asynchronous code effortlessly
  • The Future trait, to represent computations that may not be complete yet
  • tokio, the most popular runtime for running asynchronous code
  • The cooperative nature of Rust asynchronous model, and how this affects your code