Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTerminated = errors.New("taskgroup: terminated")
ErrTerminated returned if Group was already terminated.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group manages set of tasks. Unlike errgroup.Group it is safe to call Go after Wait. If Group didn't terminate yet the behavior will be the same as for errgroup.Group, if it did Go will exit immediately.
Zero value is not a valid Group. Must be initialized using New.
Click to show internal directories.
Click to hide internal directories.