Module async_unsync::semaphore
source · Expand description
A simple asynchronous semaphore for limiting and sequencing access to arbitrary shared resources.
Structs
- An error which can occur when a
Semaphore
has been closed. - A permit representing access to the
Semaphore
’s guarded resource. - An unsynchronized (
!Sync
), simple semaphore for asynchronous permit acquisition.
Enums
- An error which can occur when a
Semaphore
has been closed or has no available permits.