Watch the rest of this series: • Advanced Rust
New to Rust? Check out my fundamentals series: • How to become a Rust Developer
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.
Find me elsewhere:
🐘 Mastodon: mastodon.social/@GreenTeaCoding
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
コメント