MCPcopy Create free account
hub / github.com/sourcegraph/conc / worker

Method worker

pool/pool.go:148–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146}
147
148func (p *Pool) worker() {
149 // The only time this matters is if the task panics.
150 // This makes it possible to spin up new workers in that case.
151 defer p.limiter.release()
152
153 for f := range p.tasks {
154 f()
155 }
156}
157
158type limiter chan struct{}
159

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.80

Tested by

no test coverage detected