- Notifications
You must be signed in to change notification settings - Fork11k
Async updates and reformatting for new exercise#2216
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Async updates and reformatting for new exercise#2216
Uh oh!
There was an error while loading.Please reload this page.
Conversation
- Renamed/ordered the directories for macros, clippy, and conversions, shifting them all one up in numerical order to fit async as number 21- Added the 21_async directories in exercises and solutions- Added async1.rs in the 21_async directory in exercises and solutions- Added async to the info.toml in rustlings-macros and reordered the rest of the exercises in there as well- Created an exercise for async1 and its solution
Added new line to end of README to pass the format job
Polycarbohydrate commentedMar 8, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I saw the file in Should I run |
The first exercise demonstrates the concept of adding the
asynckeyword to the function signature to declare the function as asynchronous. It introduces thetokiocrate with itssleepfunction and uses futures withawait.