3 ms·
Ah hah, that sounds awesome, thanks! Yea my past experience with Futures in Rust, mostly manually, made them feel like they were "No magic, just Rust" and so t
by asdkhadsj 7y ago
Ah hah, that sounds awesome, thanks!
Yea my past experience with Futures in Rust, mostly manually, made them feel like they were "No magic, just Rust" and so the Yields were just a lot of returns.
I had thought the .await impl was largely just standardization around the syntaxes. Something you could do manually, so to say.
The yielding holding the stack frame, in my head then, sounds quite similar to actually returning. However, it's a special return that stashes that stack somewhere for later use. Neat!