I’ve always felt Rust’s Future was a super clean design. It’s interesting that pw_async2 makes a “Dispatcher” accessible in its Context. Earlier designs of rust’s Context did the same [0], but now it carries nothing but the Waker (and a LocalWaker technically).
I’ve always felt Rust’s Future was a super clean design. It’s interesting that pw_async2 makes a “Dispatcher” accessible in its Context. Earlier designs of rust’s Context did the same [0], but now it carries nothing but the Waker (and a LocalWaker technically).
[0]: https://github.com/aturon/rfcs/blob/async-trait/text/0000-as...
Also might be interesting to read about: https://embassy.dev/