3 ms·
I would be surprised if it does anytime soon. async/await's would conflict very much with the complete lifetime system. After an await your programs state might
by Matthias247 12y ago
I would be surprised if it does anytime soon.
async/await's would conflict very much with the complete lifetime system.
After an await your programs state might be completely different. Things that are on the stack have to be saved for the duration of the await and must be restored. However destructors may not run in between. And you must even take into account that the await might never finish.
I think the original Rust did not even have a need for async/await because it used "lightweight" tasks for that purpose. But now these are out.