3 ms·
Async is final, and I think the design is fine. The problem is that async code doesn't interact properly with the rest of the rust language. You can't make asy
by josephg 4y ago
Async is final, and I think the design is fine.
The problem is that async code doesn't interact properly with the rest of the rust language. You can't make async traits, async iterators or streams, or use async closures. The problem isn't async. Its that the rest of the language is apparently (still!) incompatible with async code.
All of this stuff is "coming" - and by that I mean, there have been RFCs kicking around since 2017 aiming to fix these problems. Blergh.
Eg:
GATs: https://github.com/rust-lang/rust/issues/44265 https://github.com/rust-lang/rust/issues/44265 (This one might land soon!)
Async closures: https://github.com/rust-lang/rust/issues/62290 https://github.com/rust-lang/rust/issues/62290 (seems to have stalled)
TAIT: https://github.com/rust-lang/rust/issues/63063 https://github.com/rust-lang/rust/issues/63063 (seems to have stalled)
And so on.