[]Type Definition blocking_permit::Semaphore

type Semaphore = GenericSemaphore<RawMutex>;

An async-aware semaphore for constraining the number of concurrent blocking operations.

This re-exported type is either futures_intrusive::sync::Semaphore (futures-intrusive feature) or tokio::sync::Semaphore (tokio-semaphore or tokio-omnibus features).


A [GenericSemaphore] backed by parking_lot.

Trait Implementations

impl Semaphorish for Semaphore[src]