Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Semaphore ¶
type Semaphore chan struct{}
Semaphore is a thin wrapper around a channel for using it as a semaphore.
func NewSemaphore ¶
NewSemaphore creates a semaphore that allows up to a given limit of simultaneous acquisitions.
Click to show internal directories.
Click to hide internal directories.