package
Version:
v2.0.0-...-a21236f
Opens a new window with list of versions in this module.
Published: Oct 14, 2023
License: MIT
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.