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
}
A Group is a set of subtasks that occur as part of a parent task which runs until an error occurs or its context is canceled.
func NewGroup ¶
NewGroup returns a Group that is bound to ctx. No new tasks can be started once the group's context has been canceled.
func (*Group) Go ¶
Go calls the given function in a new goroutine.
It returns a non-nil error if the group's context has been canceled, or another task has returned a non-nil error.
The context passed to fn is canceled when the group's context is canceled, or some other task returns a non-nil error.
Click to show internal directories.
Click to hide internal directories.