Fundamentals of asynchronous Execution | Advanced Rust Part 5

Fundamentals of asynchronous Execution | Advanced Rust Part 5

5.204 Lượt nghe
Fundamentals of asynchronous Execution | Advanced Rust Part 5
This video is part of the "Advanced Rust" playlist: https://www.youtube.com/playlist?list=PLFdNoRgzggbr7tkQsO4VrF1UGy0ji9sZl New to Rust? Check out my fundamentals series: https://www.youtube.com/playlist?list=PLFdNoRgzggbo6BqJQ6tqk_wvXeI5yfbGA This time, we explore asynchronous Rust. There is a lot of confusion around concurrency, parallelism, threading and asynchronous code execution. We clarify terms, look at the fundamental differences and learn how to run asynchronous code in Rust with tokio. 00:00 Intro 01:02 Commonly used terms 03:48 async/await in Rust 05:54 Async runtime 09:17 tokio::main 10:37 reqwest 12:23 why are we running in serial? 13:59 tokio::join! 16:10 tokio::spawn 18:30 tokio::select! 20:00 tokio's channels 22:13 tokio event loop 23:49 async vs threads 26:16 async & threads 27:06 Outro #rustlang #async #concurrency