package
Version:
v0.0.0-...-2561dba
Opens a new window with list of versions in this module.
Published: Dec 15, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 12
Opens a new window with list of known importers.
Documentation
¶
Package semaphore contains an implementation of a counting semaphore.
type Semaphore struct {
C chan struct{}
}
Semaphore is a counting semaphore. It must be initialized before use.
NewSemaphore creates a new semaphore.
Close shuts down the semaphore and releases all the locks.
Init initializes the semaphore.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.