Restore `DISCONNECTED` state in `oneshot::Packet::send` Closes #32114 I'm not sure if this is the best approach, but the current action of swapping `DISCONNECTED` with `DATA` seems wrong. Additionally, it is strange that the `send` method (and others in the `oneshot` module) takes `&mut self` despite performing atomic operations, as this requires extra discipline to avoid data races and lets us use methods like `AtomicUsize::get_mut` instead of methods that require a memory ordering. |
||
|---|---|---|
| .. | ||
| mpsc | ||
| barrier.rs | ||
| condvar.rs | ||
| mod.rs | ||
| mutex.rs | ||
| once.rs | ||
| rwlock.rs | ||