Documentation ¶
Overview ¶
The parallel package provides a way of running functions concurrently while limiting the maximum number running at once.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Run ¶
type Run struct {
// contains filtered or unexported fields
}
Run represents a number of functions running concurrently.
func NewRun ¶
NewRun returns a new parallel instance. It will run up to maxPar functions concurrently.
func (*Run) Do ¶
Do requests that r run f concurrently. If there are already the maximum number of functions running concurrently, it will block until one of them has completed. Do may itself be called concurrently.
Click to show internal directories.
Click to hide internal directories.