Expand description
An asynchronous counting semaphore.
A semaphore limits the number of tasks which may execute concurrently. See
the Semaphore
type’s documentation for details.
Structs§
- Acquire
- The future returned by the
Semaphore::acquire
method. - Acquire
Owned - Future returned from
Semaphore::acquire_owned()
. - Owned
Permit - An owned RAII guard representing one or more permits acquired from a
Semaphore
. - Permit
- A RAII guard representing one or more permits acquired from a
Semaphore
. - Semaphore
- An asynchronous counting semaphore.
Enums§
- TryAcquire
Error - Errors returned by
Semaphore::try_acquire
.