Documentation
¶
Overview ¶
package group provides a way to manage the lifecycle of a group of goroutines.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type G ¶
type G struct {
// contains filtered or unexported fields
}
G manages the lifetime of a set of goroutines from a common context. The first goroutine in the group to return will cause the context to be canceled, terminating the remaining goroutines.
func (*G) Add ¶
add adds a new goroutine to the group. The goroutine should exit when the context passed to it is canceled.
Click to show internal directories.
Click to hide internal directories.