smol-rs / async-broadcast

Async broadcast channels
Apache License 2.0
151 stars 26 forks source link

Add `Sender::broadcast_blocking` and `Receiver::recv_blocking` #68

Closed hozan23 closed 5 days ago

hozan23 commented 1 week ago

Support blocking broadcast and receive using the wait() function from the event-listener crate

I'm unsure about calling wait() on recv_direct() and broadcast_direct() methods. I'm open to making adjustments.

Fixes #41

zeenix commented 1 week ago

LGTM but I'd want @notgull's opinion too.

zeenix commented 5 days ago

seems @notgull is busy these days. I'll merge this. We can always revert if needed.