AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Difference Between Futures and Rust
Future of the trait stabilizes sort of the core primitive for this kind of asynchronous stuff in rust. It provides a convenient way for you to write code that takes a future and says, wait for this future to be done and then do this other thing afterwards. And it also provides you a mechanism for writing future to yourself to say, here's a function that is going to do things like network requests. All it does is it gives the executors a weight to make progress on. OK. Very cool. Let's back up here kind of like ringing the weeds a bit right now where it's like, this is all very complex.