Documentation ¶ Index ¶ type Semaphore func NewSemaphore(size int) Semaphore func (sem Semaphore) Acquire() func (sem Semaphore) AcquireMaybe() bool func (sem Semaphore) Cap() int func (sem Semaphore) Len() int func (sem Semaphore) Release() 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 } func NewSemaphore ¶ func NewSemaphore(size int) Semaphore func (Semaphore) Acquire ¶ func (sem Semaphore) Acquire() func (Semaphore) AcquireMaybe ¶ func (sem Semaphore) AcquireMaybe() bool func (Semaphore) Cap ¶ func (sem Semaphore) Cap() int func (Semaphore) Len ¶ func (sem Semaphore) Len() int func (Semaphore) Release ¶ func (sem Semaphore) Release() Source Files ¶ View all Source files sync.go Click to show internal directories. Click to hide internal directories.