Documentation
¶
Overview ¶
Package goalbatch A simple way to execute functions asynchronously and waits for results
The idea come from github.com/vardius/gollback, but more suitable for concurrent waiting scenarios
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Goalbatch ¶
type Goalbatch interface {
// Batch method returns when all of the callbacks passed or context is done,
// returned responses and errors are ordered according to callback order
Batch(fns ...AsyncFunc) ([]interface{}, []error)
}
Goalbatch provides set of utility methods to easily manage asynchronous functions
Click to show internal directories.
Click to hide internal directories.