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

Method shouldQuit

workerpool.go:175–187  ·  view source on GitHub ↗
(timeout <-chan time.Time)

Source from the content-addressed store, hash-verified

173}
174
175func (w *worker) shouldQuit(timeout <-chan time.Time) (ok bool) {
176 select {
177 case <-w.quit:
178 return true
179 case <-w.poolQuit:
180 return true
181 case <-timeout:
182 return true
183 default:
184 }
185
186 return false
187}
188
189func (w *worker) registerInPool(timeout <-chan time.Time) (ok bool) {
190 // register this worker in the pool

Callers 1

beginMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected