Versions in this module Expand all Collapse all v0 v0.0.2 Oct 12, 2022 Changes in this version + var WorkerCount = runtime.NumCPU() + type SimpleAction func() error + type SimplePool struct + func NewSimple(n int) *SimplePool + func (s *SimplePool) Run(f SimpleAction) + func (s *SimplePool) Wait() error v0.0.1 Oct 11, 2022 Changes in this version + type Action func(task *Task) error + type Task struct + Action Action + Message string + Tracker *progress.Tracker + Value interface{} + func (t *Task) SetMessage(msg string, args ...interface{}) + type Workerpool struct + func New(name string, tasks []*Task, action Action) *Workerpool + func (wp *Workerpool) Run() error + func (wp *Workerpool) SerialRun() error + func (wp *Workerpool) SetProgressBuilder(f func(tasks []*Task) progress.Writer)