package
Version:
v0.1.13
Opens a new window with list of versions in this module.
Published: May 10, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Semaphore struct {
}
Semaphore is a semaphore implementation.
NewSemaphore creates a new semaphore with the given limit.
Acquire acquires a semaphore.
Count returns the number of acquired semaphores.
Limit returns the limit of the semaphore.
Release releases a semaphore.
Wait waits for all acquired semaphores to be released.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.