Documentation ¶ Index ¶ type Workers func New(wg *sync.WaitGroup, quit chan struct{}, maxTasks int) *Workers func (w *Workers) Drain() func (w *Workers) Enqueue(fn func()) error func (w *Workers) Start(workersN int) func (w *Workers) TasksCount() int Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Workers ¶ type Workers struct { // contains filtered or unexported fields } func New ¶ func New(wg *sync.WaitGroup, quit chan struct{}, maxTasks int) *Workers func (*Workers) Drain ¶ func (w *Workers) Drain() func (*Workers) Enqueue ¶ func (w *Workers) Enqueue(fn func()) error func (*Workers) Start ¶ func (w *Workers) Start(workersN int) func (*Workers) TasksCount ¶ func (w *Workers) TasksCount() int Source Files ¶ View all Source files workers.go Click to show internal directories. Click to hide internal directories.