Expand description
Feature-agnostic synchronization primitives
In async mode, re-exports tokio::sync types. In sync mode, provides std::sync wrappers
with a matching API.
Structsยง
- Mutex ๐
- An asynchronous
Mutex-like type. - Mutex
Guard ๐ - A handle to a held
Mutex. The guard can be held across any.awaitpoint as it isSend. - RwLock ๐
- An asynchronous reader-writer lock.
- RwLock
Read ๐Guard - RAII structure used to release the shared read access of a lock when dropped.
- RwLock
Write ๐Guard - RAII structure used to release the exclusive write access of a lock when dropped.