Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JobQueue chan Queuable
JobQueue ... a buffered channel that we can send work requests on.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct { WorkerPool chan chan Queuable Workers []Worker // contains filtered or unexported fields }
Dispatcher ... worker dispatcher
func NewDispatcher ¶
func NewDispatcher(maxWorkers int) *Dispatcher
NewDispatcher ... creates new queue dispatcher
func (*Dispatcher) Run ¶
func (d *Dispatcher) Run()
Run ... starts work of dispatcher and creates the workers
Click to show internal directories.
Click to hide internal directories.