--------------------------- WorkerPool ---------------------
| 29 | |
| 30 | // --------------------------- WorkerPool --------------------- |
| 31 | type WorkerPool struct { |
| 32 | workerlen int |
| 33 | JobQueue chan Job |
| 34 | WorkerQueue chan chan Job |
| 35 | } |
| 36 | |
| 37 | func NewWorkerPool(workerlen int) *WorkerPool { |
| 38 | return &WorkerPool{ |
nothing calls this directly
no outgoing calls
no test coverage detected