mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-01 00:09:18 +00:00
- 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
16 lines
804 B
Markdown
16 lines
804 B
Markdown
# Async (Asynchronous Programming)
|
|
|
|
Asynchronous programming allows a program to perform tasks concurrently
|
|
without blocking the main execution thread. It is particularly useful
|
|
for I/O-bound operations, such as network requests or file reading,
|
|
where waiting for a response can be done in the background.
|
|
In Rust, asynchronous functions are defined using the async keyword
|
|
and are executed with the help of an asynchronous runtime like tokio.
|
|
This approach improves the efficiency and responsiveness of applications
|
|
by enabling them to handle multiple tasks simultaneously.
|
|
|
|
## Further information
|
|
|
|
- [Asynchronous Programming in Rust](https://doc.rust-lang.org/book/ch17-00-async-await.html)
|
|
- [Learn Tokio](https://tokio.rs/tokio/tutorial/)
|
|
- [Tokio Documentation](https://docs.rs/tokio/latest/tokio/) |