Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parallelism ¶
func Parallelism() int
Parallelism returns the current parellism.
This defaults to the number of CPUs.
func Parallelize ¶
Parallelize runs the jobs in parallel.
A max of Parallelism jobs will be run at once. Returns the combined error from the jobs.
func SetParallelism ¶
func SetParallelism(parallelism int)
SetParallelism sets the parallelism.
If parallelism < 1, this sets the parallelism to 1.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.