News for hackers. Stuff that matters.
Re:Async-await on stable Rust by asdkhadsj on Saturday November 09, 2019 @09:48AM (#21491815)
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!

There are no comments on this comment yet.