package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Oct 7, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package semaphore implements a basic semaphore for coordinating and limiting
non-exclusive, concurrent access.
type Semaphore chan struct{}
New creates a semaphore with the given concurrency limit.
Acquire will block until the semaphore can be acquired.
Release frees the acquired slot in the semaphore.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.