Crust of Rust: async/await

Channel:Jon Gjengset · Length:2:34:01 · Published:2021-08-31 · Views:247558

Watch on YouTube

Summary

Jon Gjengset's long live-coding Crust of Rust episode on async/await, focused on the mental model for using it rather than on Futures, Pin and Wakers internals. Topics include awaiting multiple futures, cancellation, executors and select.

Why HN recommends it

Recommended as a deep, practical dive for learning how Rust async works.

these two videos are also great deep dives into Rust async — HN, 2023

C, C++, Rust, Go & systems languages

Subtitles (excerpt)

Hi, everyone. Welcome back. It's been quite some time since the last stream, and it's because I've been on vacation, which has been really nice. It was an odd vacation, but that's a story for a different time, a Q&A or something. So this is going to be another crust of rust. So it's going to be one of the shorter streams. And in particular, what I wanted to tackle this time around was Async Await. Async await is something that like has, I've been asked about it a lot. I have a stream on Async await. I'll link it like up here in the final video. Um, but, but that goes a lot more into the technical detail of like, how does the machinery work and how did the traits work in the, the like bits underneath, but it doesn't really talk about just like, how should you think about async await? How should you use async await? What does it use look like for you as an end user, uh, or, or as a developer rather? Um, and so I wanted to take a crust of rust as sort of a, a step back in complexity and just look at the. the mechanism, but from like a usability standpoint, and just talk about more sort of the intuition and the mental model that you should have, more so than the nitty gritty details of how it actually functions.

On Hacker News

there is a chapter on async in comprehensive rust and rustbook which ought to bring you up to speed there is the async book but it is largely unfinished you can watch John Gjengset's crust of rust async, decrusting tokio, and why what, and how of pinning in rust then there are tokio-lessons and tokio tutorial which teach how to use tokio runtime and there are also good blogposts by phil-oop and r… — lame_lexem, 2026-05
Impressive! Especially the part on async where they built up the Future trait and runtime from first principles. If it interests you, these two videos are also great deep dives into Rust async [1] [2]. Rust's model is a little different from other languages in a powerful way. [1] [LINK] [2] [VIDEO] — SnowProblem, 2023-08
Very interesting insight from Graydon, in hindsight I too would have loved something more towards ML than C++. I never liked the kitchen sink approach that I see first C++, now Rust moving towards, but I respect what Rust has managed to solidify into. It's a good language. That said, I still hate async with a passion, it makes the language more complex and not very elegant (i.e. function coloring… — sph, 2023-06

Related videos