xtra
xtra copied to clipboard
PoC: Introduce `Mailbox` and make `Context` short-lived
This is a PoC for #126. It didn't quite turn out the way I wanted but I am putting it up anyway so gather some feedback.
One thing that would be cool to do on top of this is to remove the Sender and Receiver types so we have one less layer between the internal channel implementation and the public types.
This is currently blocked by these PRs:
- https://github.com/Restioson/xtra/pull/158
- https://github.com/Restioson/xtra/pull/159
This is currently blocked by these PRs:
* [Introduce generic `ChanPtr` #158](https://github.com/Restioson/xtra/pull/158) * [Introduce top-level `recv_future` module #159](https://github.com/Restioson/xtra/pull/159)
I've squash-merged both PRs into here so that I could resolve the merge conflicts already.
Is this PR ready?
Is this PR ready?
Yes!
Is this PR ready?
It probably needs a changelog entry before we can merge it though. Plus the README needs to be adjusted too!