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

Function stopped

workerpool.go:263–270  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

(c <-chan struct{})

Source from the content-addressed store, hash-verified

261//-----------------------------------------------------------------------------
262
263func stopped(c <-chan struct{}) bool {
264 ok := true
265 select {
266 case _, ok = <-c:
267 default:
268 }
269 return !ok
270}
271
272//-----------------------------------------------------------------------------

Callers 2

stoppedMethod · 0.85
initWorkerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected