Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
Dispatcher : Manage dispatching Jobs to Workers
func NewDispatcher ¶
func NewDispatcher(maxWorkers int, queueSize int) *Dispatcher
NewDispatcher : Initialize new Dispatcher
func (*Dispatcher) QueuedJobCount ¶
func (d *Dispatcher) QueuedJobCount() int
QueuedJobCount : Get number of jobs in queue. Note: some may already dispatched to the worker pool
func (*Dispatcher) Stop ¶
func (d *Dispatcher) Stop()
Stop : Ensure all jobs registered are processed
Click to show internal directories.
Click to hide internal directories.