Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group is similar to errgroup.Group. The main difference is Group.Go accepts a function with a context.Context as its first argument.
It's zero value is valid, it contains context.Background as its internal context and does not cancel on error.
func New ¶
New returns a new Group with ctx as its internal context, which is passed to the function(s) passed to Group.Go. The context is not canceled when a function passed to Group.Go returns an error.
func (*Group) Go ¶
Go calls the given function in a new goroutine. The Group's internal context is passed as argument to the function. Errors from all calls are collected, combined and returned by Group.Wait.