A new chapter on Async Rust #485
Replies: 2 comments 3 replies
-
I think it should be highlighted in the context of IO-heavy tasks like HTTP requests or database transactions. In practice, I think it's mostly used for web servers (like actix-web, but it is probably out of scope.) Async data streams are also important.
It would be nice to illustrate concepts around future control flow. For instance, doing a bunch of operations in parallel with
Tokio definitely, Reqwest is a pretty simple http request library. Flume channels are nice. Async trait is an unfortunate necessity. |
Beta Was this translation helpful? Give feedback.
-
Including Async Rust in the course materials would be a great addition! Here are some ideas for the content: For a running example, a simple web server could be used to demonstrate how async Rust works. The example could include handling incoming HTTP requests and returning responses. For an exercise, students could be tasked with converting a synchronous function into an asynchronous one using async/await and futures. Libraries like Tokio, async-std, and futures could be covered to show how they are used in async Rust programming. Students could learn how to use these libraries to perform I/O operations and manage concurrency. Overall, incorporating Async Rust into the course materials would provide students with a valuable skillset and a deeper understanding of Rust programming. |
Beta Was this translation helpful? Give feedback.
-
We'd like to cover Async Rust in the course materials, possibly as an alternative to the Android part. Here is the tracking issue for adding a chapter on Async Rust: #181
Let's use this space to discuss some ideas for the content:
Beta Was this translation helpful? Give feedback.
All reactions