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?
With
mpsc
channels, if I drop all the senders, any outstandingrecv
calls will return an error. But withoneshot
channels, this doesn't seem to happen; when I drop the sender, an outstandingrecv
call will just hang. Is it intentional that the behavior ofoneshot
channels differs frommpsc
channels in this regard?