Hacker News new | ask | show | jobs
by pflanze 1018 days ago
I've been using genawaiter[1] for writing generators in Rust. Are there things you can't build on top of async-await? Or is it just that it's simpler without that indirection?

[1]: https://crates.io/crates/genawaiter

2 comments

I was thinking that the semantics around async/await (function coloring) would make some usages more frustrating. This crate probably sidesteps that, if it is a problem at all. I have a bad habit of not dabbling around when I lack understanding.
This feels circular, since async/await is futures which are generators