Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
Result is a simple model of a concurrent task, having a simple payload and an error.
func ScatterGather ¶
func ScatterGather(wt workTable, onSuccess successHandler, onError errorHandler) []Result
ScatterGather forks the workTable into separate goroutines with callbacks onSuccess and onError. The results are gathered in slice. Neither onSuccess nor onError should panic, otherwise ScatterGather panics.
Click to show internal directories.
Click to hide internal directories.