Asynchronous Programming in Rust
Learn asynchronous programming by building working examples of futures, green threads, and runtimes
- 306 stránok
- 11 hodin čítania
Gain a fundamental understanding of asynchronous programming and Rust's futures through practical examples that clarify key concepts. This hands-on guide simplifies complex topics like coroutines, fibers, futures, and callbacks, enabling you to navigate the Rust async ecosystem confidently. You'll establish a solid foundation in asynchronous programming, exploring various strategies for modeling program flow. The book covers essential concepts such as epoll, green threads, and callbacks with practical illustrations. The latter sections focus on Rust, delving into futures, generators, and the reactor-executor pattern, culminating in the creation of your own runtime. Throughout, you will enhance your proficiency in Rust's async features and learn how Rust models asynchronous program flow. By the end, you will be equipped with the knowledge and skills to actively contribute to the Rust async ecosystem. This resource is ideal for programmers looking to deepen their understanding of asynchronous programming, particularly those familiar with VM'ed or interpreted languages like C#, Java, Python, JavaScript, and Go. Even if you have limited exposure to asynchronous programming in C or C++, this book broadens your knowledge. While examples are primarily in Rust, the intricacies of Rust's futures are thoroughly detailed, making it accessible for anyone eager to learn Rust or enhance their existing skills.
