Files
rust/library/std/src
Matthias Krüger 93a82a44a1 Rollup merge of #108164 - joboet:discard_messages_mpmc_array, r=Amanieu
Drop all messages in bounded channel when destroying the last receiver

Fixes #107466 by splitting the `disconnect` function for receivers/transmitters and dropping all messages in `disconnect_receivers` like the unbounded channel does. Since all receivers must be dropped before the channel is, the messages will already be discarded at that point, so the `Drop` implementation for the channel can be removed.

``@rustbot`` label +T-libs +A-concurrency
2023-03-21 19:00:11 +01:00
..
2022-08-01 20:10:40 +00:00
2022-12-11 01:20:18 -05:00
2022-12-11 01:20:18 -05:00
2023-03-18 12:32:09 +09:00
2022-08-18 18:07:39 -04:00
2022-12-28 09:18:43 -05:00
2022-09-26 10:14:45 +02:00
2023-02-20 23:44:21 +01:00
2022-12-31 15:32:09 +05:30
2023-03-17 21:00:10 -07:00
2023-03-15 23:55:48 +05:30