Module sync

Source
Expand description

Synchronization primitives for async contexts

Structsยง

Mutex
An async mutex
MutexGuard
An RAII guard that releases the mutex when dropped
MutexLockFuture
A Future that blocks until the Mutex can be locked, then returns the MutexGuard
RwLock
An async RwLock
RwLockFuture
A Future that blocks until the RwLock can be acquired.
RwLockReadGuard
An RAII guard that releases a read lock when dropped
RwLockWriteGuard
An RAII guard that releases the write lock when dropped