package
Version:
v1.1.6
Opens a new window with list of versions in this module.
Published: Aug 2, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type WaitGroup struct {
}
WaitGroup waits for other same processes based key with timeout.
New return a new WaitGroup with timeout.
Add adds a new caller or if the caller exists increment dups with key.
Done cancels the group context or if the caller dups more then zero, decrements the dups with key.
Get return count of dups with key.
Wait blocks until WaitGroup context cancelled or timedout with key.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.