News for hackers. Stuff that matters.
Re:Await in Rust by Jweb_Guru on Monday August 12, 2019 @09:07PM (#20681840)
Well, there's nothing you couldn't write yourself, sure... but async/await does generate unsafe code in some cases, so it is at least somewhat magical that you can do it in safe code. Since async/await has unsafe code that is really fiddly to get right otherwise (c.f. the rules for `Pin`), I think this is a pretty good tradeoff and a great use of magic.

There are no comments on this comment yet.