Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkerPool ¶
type WorkerPool struct {
// contains filtered or unexported fields
}
func NewWorkerPool ¶
func NewWorkerPool(workerCount int) *WorkerPool
func (*WorkerPool) Close ¶
func (p *WorkerPool) Close()
func (*WorkerPool) FreeWorkers ¶
func (p *WorkerPool) FreeWorkers() int
func (*WorkerPool) Resize ¶
func (p *WorkerPool) Resize(n int)
func (*WorkerPool) Submit ¶
func (p *WorkerPool) Submit(task Task) error
Click to show internal directories.
Click to hide internal directories.