File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -669,10 +669,10 @@ impl<T: Send> SyncSender<T> {
669
669
670
670
/// Attempts to send a value on this channel without blocking.
671
671
///
672
- /// This method semantically differs from `Sender:: send_opt` because it can
673
- /// fail if the receiver has not disconnected yet. If the buffer on this
674
- /// channel is full , this function will immediately return the data back to
675
- /// the callee .
672
+ /// This method differs from `send_opt` by returning immediately if the
673
+ /// channel's buffer is full or no receiver is waiting to acquire some
674
+ /// data. Compared with `send_opt` , this function has two failure cases
675
+ /// instead of one (one for disconnection, one for a full buffer) .
676
676
///
677
677
/// See `SyncSender::send` for notes about guarantees of whether the
678
678
/// receiver has received the data or not if this function is successful.
You can’t perform that action at this time.
0 commit comments