Documentation
¶
Overview ¶
Package group provides a simple interface to manage go routines.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnimplemented = errors.New("server: unimplemented")
ErrUnimplemented is returned when a listener is not implemented.
Functions ¶
This section is empty.
Types ¶
type Run ¶
Run is an abstraction on WaitGroup to run multiple functions concurrently. It mimics 'errgroup' to extend structs with functions to run concurrently with a root context.
func WithContext ¶ added in v0.5.8
WithContext is creating a new group with a context.
func (*Run) SetLimit ¶ added in v0.5.8
SetLimit limits the number of active listeners in this server
type RunFunc ¶ added in v0.5.8
RunFunc is a function that is called to attach more routines to the server.
type Unimplemented ¶ added in v0.5.8
type Unimplemented struct{}
Unimplemented is the default implementation.
Click to show internal directories.
Click to hide internal directories.