Discover Packages
github.com/influxdata/flux
internal
pkg
syncutil
package
Version:
v0.167.0
Opens a new window with list of versions in this module.
Published: May 16, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types type WaitGroup (wg) Do(fn) (wg) Wait()
Documentation
¶
type WaitGroup struct {
}
WaitGroup is a custom sync.WaitGroup that handles functions that return errors.
func (wg *WaitGroup) Do(fn func () error )
Do starts a new goroutine and executes the function within that goroutine.
This will not execute the function if an error has already occurred.
func (wg *WaitGroup) Wait() error
Wait waits for all of the goroutines started with Do to finish. It returns
the first error encountered, but will wait for the remaining goroutines to finish.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.