Skip to main content

Module lock

Module lock 

Source

Structs§

Mutex
An asynchronous Mutex-like type.
MutexGuard
A handle to a held Mutex. The guard can be held across any .await point as it is Send.
OnceCell
A thread-safe cell that can be written to only once.
RwLock
An asynchronous reader-writer lock.
Semaphore
An async counting semaphore that works on both smol and tokio.

Type Aliases§

SemaphoreGuard
A permit from Semaphore. The permit is released on drop.