Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker is responsible for executing the work. There could be many workers in a worker pool.
type WorkerPool ¶
type WorkerPool struct {
// contains filtered or unexported fields
}
func NewWorkerPool ¶
func NewWorkerPool(workerCount int) *WorkerPool
func (*WorkerPool) Start ¶
func (q *WorkerPool) Start()
func (*WorkerPool) Stop ¶
func (q *WorkerPool) Stop()
func (*WorkerPool) Submit ¶
func (q *WorkerPool) Submit(work Work) error
Click to show internal directories.
Click to hide internal directories.
