Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CGroup ¶
type CGroup interface {
// Adds the context to this group.
// Returns true if the underlying context is not yet done and this context was added to the active set, even briefly.
Add(c context.Context) (ok bool)
// Starts or retrieves the prior context for this CGroup.
// This will be already cancelled if no contexts were added.
Start() context.Context
}
func New ¶
func New() CGroup
New creates a new CGroup, which simply provides a context.Context while any passed context is active.
Click to show internal directories.
Click to hide internal directories.