Struct tokio_sync::semaphore::Semaphore [−][src]
pub struct Semaphore { /* fields omitted */ }
Expand description
Futures-aware semaphore.
Implementations
Returns the current number of available permits
Close the semaphore. This prevents the semaphore from issuing new permits and notifies all pending waiters.
Add n
new permits to the semaphore.