Expand description
A counting semaphore supporting both async and sync operations.
Structs§
- Acquire
- The future that results from async calls to
acquire*. Callers mustawaiton this future to obtain the necessary permits. - Acquire
Error - Error returned from the
BatchSemaphore::acquirefunction. - Batch
Semaphore - Counting semaphore
Enums§
- Fairness
- Fairness mode for the semaphore. Determines which threads are woken when permits are released.
- TryAcquire
Error - Error returned from the
BatchSemaphore::try_acquirefunction.