-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Receiver support to broadcast channels
I originally thought the need to keep everything lock-step was too much of a burden, but I realized by removing the usage of mpsc, I could support a Receiver interface by using send_async in an on_receive_async callback. While this adds overhead if the receiver is then turned into a callback, that's not the intended workflow -- and it still works just fine, just has a little more overhead.
- Loading branch information
Showing
1 changed file
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters