mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-01 08:19:18 +00:00
✨ add README to async chapter
This commit is contained in:
parent
0847b3a4bf
commit
ac9443f516
23
exercises/24_async/README.md
Normal file
23
exercises/24_async/README.md
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Async in Rust
|
||||||
|
|
||||||
|
In modern software development, handling multiple operations at once is crucial for performance and responsiveness. Rust facilitates this through asynchronous programming, allowing your code to perform non-blocking operations efficiently. This chapter explores the key aspects of async programming in Rust.
|
||||||
|
|
||||||
|
## Introduction to Async
|
||||||
|
Discover the basics of asynchronous programming by writing your first async function. Understand how futures work and the differences between sync and async code.
|
||||||
|
|
||||||
|
## Using Async and Await
|
||||||
|
Convert a traditional synchronous function to use async/await syntax. This exercise helps illustrate the benefits and usage of Rust’s async constructs.
|
||||||
|
|
||||||
|
## Understanding Task Execution
|
||||||
|
Learn about executing multiple tasks concurrently without blocking. This exercise focuses on how Rust handles async task execution under the hood.
|
||||||
|
|
||||||
|
## Shared State in Async Code
|
||||||
|
Tackle the challenges of managing shared state in an asynchronous context. Use synchronization tools like Mutexes to safely manage state across concurrent tasks.
|
||||||
|
|
||||||
|
## Error Handling in Async
|
||||||
|
Navigate the complexities of error handling in async code. Understand how errors propagate differently in async workflows and how to handle them effectively.
|
||||||
|
|
||||||
|
## Further Information
|
||||||
|
- [Learn more about async programming in Rust](https://doc.rust-lang.org/book/ch16-00-concurrency.html)
|
||||||
|
- [Deep dive into handling concurrency](https://doc.rust-lang.org/book/ch16-02-message-passing.html)
|
||||||
|
- [Advanced async patterns](https://tokio.rs/tokio/tutorial)
|
||||||
Loading…
x
Reference in New Issue
Block a user