austinjones / postage-rs

The feature-rich, portable async channel library
MIT License
253 stars 9 forks source link

Dropping a oneshot sender does not wake the receiver #44

Closed maxbrunsfeld closed 2 years ago

maxbrunsfeld commented 3 years ago

With mpsc channels, if I drop all the senders, any outstanding recv calls will return an error. But with oneshot channels, this doesn't seem to happen; when I drop the sender, an outstanding recv call will just hang. Is it intentional that the behavior of oneshot channels differs from mpsc channels in this regard?

austinjones commented 2 years ago

Thanks for the report! This is fixed in v0.5.0 and is up on crates.io.

maxbrunsfeld commented 2 years ago

Awesome, thank you!