Expand description
Async synchronization primitives.
This crate provides the following primitives:
Structs§
- Barrier
- A counter to synchronize multiple tasks at the same time.
- Barrier
Wait Result - Returned by
Barrier::wait()
when all tasks have called it. - Mutex
- An async mutex.
- Mutex
Guard - A guard that releases the mutex when dropped.
- Mutex
Guard Arc - An owned guard that releases the mutex when dropped.
- Once
Cell - A memory location that can be written to at most once.
- RwLock
- An async reader-writer lock.
- RwLock
Read Guard - A guard that releases the read lock when dropped.
- RwLock
Upgradable Read Guard - A guard that releases the upgradable read lock when dropped.
- RwLock
Write Guard - A guard that releases the write lock when dropped.
- Semaphore
- A counter for limiting the number of concurrent operations.
- Semaphore
Guard - A guard that releases the acquired permit.
- Semaphore
Guard Arc - An owned guard that releases the acquired permit.