You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that in the docs there is a comment under the Receiver::recv() method that states "However, since channels are buffered, messages sent before the disconnect will still be properly received." but this comment is not duplicated under Receiver::try_recv().
However, I tried tracing the specific Receiver used in conjunction with SyncSenders which led me to here where it looks like an eager check for a disconnect while ignoring possible data that is still buffered in the Queue. Is this intended?
The text was updated successfully, but these errors were encountered:
I tried this code:
I expected to see this happen:
Instead, this happened:
Notes
I see that in the docs there is a comment under the
Receiver::recv()
method that states "However, since channels are buffered, messages sent before the disconnect will still be properly received." but this comment is not duplicated underReceiver::try_recv()
.However, I tried tracing the specific
Receiver
used in conjunction withSyncSender
s which led me to here where it looks like an eager check for a disconnect while ignoring possible data that is still buffered in theQueue
. Is this intended?The text was updated successfully, but these errors were encountered: