Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WaitGroup ¶
type WaitGroup struct {
Chan chan struct{}
// contains filtered or unexported fields
}
WaitGroup is simalar to sync.WaitGroup but mixin a channel to limit parallelism
func (*WaitGroup) Add ¶
func (wg *WaitGroup) Add()
Add will firstly apply channel send and then call underlying WaitGroup.Add(1) it blocks if too many goroutine call Add
Click to show internal directories.
Click to hide internal directories.