Documentation ¶ Index ¶ type Pool func (p *Pool[T]) Start(worker func(context.Context, T) error, getWork func(int) ([]T, error)) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Pool ¶ type Pool[T any] struct { Size int `yaml:"size,omitempty" json:"size,omitempty"` Sleep int `yaml:"sleep,omitempty" json:"sleep,omitempty"` // contains filtered or unexported fields } func (*Pool[T]) Start ¶ func (p *Pool[T]) Start(worker func(context.Context, T) error, getWork func(int) ([]T, error)) error Source Files ¶ View all Source files counter.gopool.go Click to show internal directories. Click to hide internal directories.