8000 feat: add async exercises by manyinsects · Pull Request #2243 · rust-lang/rustlings · GitHub
[go: up one dir, main page]

Skip to content

feat: add async exercises #2243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: add async exercises #2243

wants to merge 1 commit into from

Conversation

manyinsects
Copy link
Member
@manyinsects manyinsects commented May 16, 2025

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 manyinsects requested a review from mo8it May 16, 2025 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0