Documentation ¶ Index ¶ type Group func (rg *Group) Add(r Runnable) func (rg *Group) RunAndWait(ctx context.Context) error type Runnable type RunnableFunc func (r RunnableFunc) Run(ctx context.Context) error 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 } func (*Group) Add ¶ func (rg *Group) Add(r Runnable) func (*Group) RunAndWait ¶ func (rg *Group) RunAndWait(ctx context.Context) error type Runnable ¶ type Runnable interface { // Run starts running the component and blocks until the context is canceled, Shutdown is // called or a fatal error is encountered. Run(context.Context) error } type RunnableFunc ¶ added in v0.3.4 type RunnableFunc func(context.Context) error func (RunnableFunc) Run ¶ added in v0.3.4 func (r RunnableFunc) Run(ctx context.Context) error Source Files ¶ View all Source files group.go Click to show internal directories. Click to hide internal directories.