package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: May 10, 2020
License: BSD-3-Clause
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Job is a function for doing jobs.
type Pool struct {
JobQueue chan Job
WorkerQueue chan *Worker
}
Pool is goroutine pool config.
func NewPool(numWorkers int, jobQueueLen int) *Pool
NewPool news gotouine pool
Release release all workers
type Worker struct {
WorkerQueue chan *Worker
JobChannel chan Job
Stop chan struct{}
}
Worker goroutine struct.
Start start gotoutine pool.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.