Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
// The new context.
C context.Context
// contains filtered or unexported fields
}
func NewGroup ¶
NewGroup creates a new ContextGroup with the given initial context. When all added contexts are complete, cancels the contained context. If the passed contexts are already cancelled, this might return a cancelled group.
func NewTimeoutGroup ¶
NewTimeoutGroup creates a new ContextGroup that, when it has no active contexts, expires after the given duration. If the duration is zero/low, this may be expired by the time the caller returns.
Click to show internal directories.
Click to hide internal directories.