Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Semaphore ¶
type Semaphore interface {
// Acquire blocks until a slot is available in the semaphore.
Acquire(context.Context) error
// Release frees a slot in the semaphore.
Release()
}
Semaphore is the interface that wraps basic Acquire and Release methods to control access to a limited resource pool.
Click to show internal directories.
Click to hide internal directories.