joboet
34aa87292c
std: leak remaining messages in bounded channel if message destructor panics
2023-03-14 16:42:34 +01:00
joboet
4e9e465bd4
std: disconnect senders before discarding messages
2023-02-26 11:57:27 +01:00
joboet
746331edf3
std: drop all messages in bounded channel when destroying the last receiver
2023-02-17 15:47:58 +01:00
Ibraheem Ahmed
ab20f8d5ba
remove optimistic spinning from mpsc::SyncSender
2023-01-14 00:36:51 -05:00
Ibraheem Ahmed
8917e99362
rework and document backoff behavior of sync::mpsc
2023-01-11 21:29:14 -05:00
Ibraheem Ahmed
f8276c94ac
add SyncSender::send_timeout test
2023-01-10 21:54:53 -05:00
Ibraheem Ahmed
2538c0c170
fix SyncSender spinning behavior
2023-01-10 21:39:02 -05:00
fee1-dead
0818ba43a4
Rollup merge of #104708 - jonasspinner:fix-backoff-doc-to-match-implementation, r=compiler-errors
...
Fix backoff doc to match implementation
The commit 8dddb22943 in the crossbeam-channel PR (#93563 ) changed the backoff strategy to be quadratic instead of exponential. This updates the doc to prevent confusion.
2022-12-28 15:51:40 +08:00
Rageking8
58110572fb
fix dupe word typos
2022-12-05 16:42:36 +08:00
Jonas Spinner
70bba3b62a
rustdoc: Fix backoff doc to match implementation
2022-11-22 11:06:57 +01:00
Ibraheem Ahmed
a22426916d
avoid calling thread::current in channel destructor
2022-11-12 23:13:58 -05:00
Ibraheem Ahmed
209168655a
tidy
2022-11-09 23:20:02 -05:00
Ibraheem Ahmed
f2b5e27a60
spin less in mpsc::SyncSender::send
2022-11-09 23:20:02 -05:00
Ibraheem Ahmed
f2966d1d0c
remove extra spinning from mpsc parker
2022-11-09 23:20:02 -05:00
Ibraheem Ahmed
8dddb22943
sync::mpsc: quadratic backoff
2022-11-09 23:20:02 -05:00
Ibraheem Ahmed
7b721ed0cd
sync::mpsc: reload state after spinning on CAS failure
2022-11-09 23:20:02 -05:00
Ibraheem Ahmed
8c17a3e7cb
remove extra spinning from mpsc::Receiver::recv
2022-11-09 23:20:02 -05:00
Ibraheem Ahmed
a43da5a097
initial port of crossbeam-channel
2022-11-09 23:18:06 -05:00