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

Method Go

pool/error_pool.go:28–32  ·  view source on GitHub ↗

Go submits a task to the pool. If all goroutines in the pool are busy, a call to Go() will block until the task can be started.

(f func() error)

Source from the content-addressed store, hash-verified

26// Go submits a task to the pool. If all goroutines in the pool
27// are busy, a call to Go() will block until the task can be started.
28func (p *ErrorPool) Go(f func() error) {
29 p.pool.Go(func() {
30 p.addErr(f())
31 })
32}
33
34// Wait cleans up any spawned goroutines, propagating any panics and
35// returning any errors from tasks.

Callers

nothing calls this directly

Calls 1

addErrMethod · 0.95

Tested by

no test coverage detected