Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkerFunc ¶
type WorkerFunc func(workerID int, jobData interface{})
type WorkerPool ¶
type WorkerPool struct {
// contains filtered or unexported fields
}
func New ¶
func New(size int) *WorkerPool
func (*WorkerPool) PublishJobData ¶
func (wp *WorkerPool) PublishJobData(jobData interface{})
func (*WorkerPool) Run ¶
func (wp *WorkerPool) Run(workerFunc WorkerFunc)
Click to show internal directories.
Click to hide internal directories.