Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Semaphore ¶
type Semaphore struct {
// contains filtered or unexported fields
}
Semaphore is a very simple semaphore
func NewSemaphore ¶
NewSemaphore creates a new semaphore with a given amount of permits before blocking.
Click to show internal directories.
Click to hide internal directories.