rustlings icon indicating copy to clipboard operation
rustlings copied to clipboard

feat: add async exercises

Open manyinsects opened this issue 7 months ago • 0 comments

Adds two new exercises about async/await and handling concurrency with Tokio. I shoved these inbetween threads and macros, as that's where they are in the book (and having done threads is useful for async2 and general understanding of concurrency in Rust).

async1:

  • Uses minimal Tokio functionality
  • Learn how to declare an async function
  • Learn how to call and await an async function
  • Learn about function coloring (just not under that term)

async2:

  • Uses tokio::task::JoinSet
  • Learn how to handle a set of Tokio tasks
  • Learn about async closures

Happy to change anything at all about these exercises, this is just my two cents on what would be useful to learn during the course, without being too complex.

manyinsects avatar May 16 '25 13:05 manyinsects