Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LGroup ¶
type LGroup[Init any] interface { Join(context.Context, Init) bool Register(func(context.Context, Init) error) Done() <-chan struct{} }
func NewLGroup ¶
func NewLGroup[Init any](cancel context.CancelCauseFunc) (group LGroup[Init], start func())
NewLGroup creates a new LGroup which manages the lifecycles of contexts and helper functions over them. The caller must eventually call start(); to do otherwise leaks. The start() method allows setup/join before kickoff, that way the LGroup doesn't start dead.
Click to show internal directories.
Click to hide internal directories.