async-channel icon indicating copy to clipboard operation
async-channel copied to clipboard

Document why we notify all streams when sending a single message

Open Ten0 opened this issue 2 years ago • 0 comments

https://github.com/smol-rs/async-channel/blob/a0ba218942788fd521766c65b23a691f5403d71c/src/lib.rs#L204-L208

It's unclear to me why all streams are woken up instead of a single one when sending a message. (That is, why don't streams and recv behave in the same way, when the stream is typically essentially "polling recv forever").

Would it be possible to document that further?

Thanks,

Ten0 avatar Feb 12 '23 09:02 Ten0