Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
All runs all tasks and returns their results in the same order as tasks. Nil tasks are skipped and leave a nil result at their index. If any task fails, All discards all results and returns the first error.
func AllLimit ¶ added in v0.4.38
AllLimit is like All, but runs at most limit tasks concurrently. A limit <= 0 means no limit and is equivalent to All.
func AllLimitResults ¶ added in v0.4.38
AllLimitResults is like AllResults, but runs at most limit tasks concurrently. A limit <= 0 means no limit and is equivalent to AllResults.
func AllResults ¶ added in v0.4.37
AllResults runs all tasks and returns their results in the same order as tasks. Unlike All, it keeps the results of the tasks that succeeded when one or more tasks fail. Failed and nil tasks leave a nil result at their index, so the returned slice always has the same length as tasks.
Types ¶
This section is empty.