Documentation
¶
Overview ¶
The parallel package provides a way of running functions concurrently while limiting the maximum number running at once. same as errgroup.Group but with a limiter number
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parallel ¶
type Parallel struct {
// contains filtered or unexported fields
}
Parallel represents a number of functions running concurrently.
func WithContext ¶
WithContext returns a new parallel instance and an associated Context derived from ctx.. It will run up to maxPar functions concurrently.
Click to show internal directories.
Click to hide internal directories.