Versions in this module Expand all Collapse all v0 v0.0.1 Jan 28, 2023 Changes in this version + var ErrContextInterrupt = errors.New("context interrupt") + var ErrPoolClosed = errors.New("pool closed") + type Option func(*WorkerPool) + func PanicHandler(panicHandler func(interface{})) Option + type WorkerPool struct + MaxWorkers int32 + PanicHandler func(interface{}) + func NewWorkerPool(maxWorkers int32, options ...Option) *WorkerPool + func (w *WorkerPool) AddTask(ctx context.Context, fn func()) error + func (w *WorkerPool) Closed() bool + func (w *WorkerPool) Stop(ctx context.Context) error + func (w *WorkerPool) WaitForTaskCompleted()