Module ruspiro_lock::async[][src]

Structs

AsyncMutex

An async mutex lock that can be used in async functions to prevent blocking current execution while waiting for the lock to become available. So for this to work the lock() method does not return a MutexGuard immediately but a Future that will resove into a AsyncMutexGuard when awaited.

AsyncMutexGuard
AsyncRWLock

An async mutex lock that can be used in async functions to prevent blocking current execution while waiting for the lock to become available. So for this to work the lock method does not return a WriteGuard immediately but a Future that will resolve into a AsyncWriteLockGuard when awaited. In the same way the read method will return a Future resolving to an AsyncReadLockGuard when awaited.

AsyncReadLockGuard
AsyncSemaphore
AsyncWriteLockGuard