diff --git a/src/concurrency/send-sync/examples.md b/src/concurrency/send-sync/examples.md index 7fffa9b9..1bc78d73 100644 --- a/src/concurrency/send-sync/examples.md +++ b/src/concurrency/send-sync/examples.md @@ -9,6 +9,7 @@ Most types you come across are `Send + Sync`: - `String`, `Option`, `Vec`, `Box`, ... - `Arc`: Explicitly thread-safe via atomic reference count. - `Mutex`: Explicitly thread-safe via internal locking. +- `mpsc::Sender`: As of 1.72.0. - `AtomicBool`, `AtomicU8`, ...: Uses special atomic instructions. The generic types are typically `Send + Sync` when the type parameters are @@ -19,7 +20,6 @@ The generic types are typically `Send + Sync` when the type parameters are These types can be moved to other threads, but they're not thread-safe. Typically because of interior mutability: -- `mpsc::Sender` - `mpsc::Receiver` - `Cell` - `RefCell`