The highest tagged major version is
v4.
package
Version:
v3.46.1+incompatible
Opens a new window with list of versions in this module.
Published: Oct 5, 2018
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
¶
Instance is an implementation of semaphore.
New create a new Semaphore with n permits.
Signal releases a permit into the semaphore.
func (s *Instance) Wait() <-chan struct{}
Wait returns a channel for acquiring a permit.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.