(&mut self)
| 203 | |
| 204 | impl<T> Drop for Sender<T> { |
| 205 | fn drop(&mut self) { |
| 206 | // Decrement the sender count and close the channel if it drops down to zero. |
| 207 | if self.channel.sender_count.fetch_sub(1, Ordering::AcqRel) == 1 { |
| 208 | self.channel.close(); |
| 209 | self.close_ops.notify(usize::MAX); |
| 210 | } |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | impl<T> fmt::Debug for Sender<T> { |