MCPcopy Create free account
hub / github.com/dc0d/workerpool / dispatch

Method dispatch

workerpool.go:126–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124}
125
126func (pool *WorkerPool) dispatch() {
127 for {
128 select {
129 case job := <-pool.jobs:
130 // handle job
131 todo := <-pool.pool
132 todo <- job
133 case <-pool.quit:
134 return
135 }
136 }
137}
138
139//-----------------------------------------------------------------------------
140

Callers 1

NewFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected