MCPcopy Index your code
hub / github.com/sourcegraph/conc / Wait

Method Wait

pool/pool.go:74–80  ·  view source on GitHub ↗

Wait cleans up spawned goroutines, propagating any panics that were raised by a tasks.

()

Source from the content-addressed store, hash-verified

72// Wait cleans up spawned goroutines, propagating any panics that were
73// raised by a tasks.
74func (p *Pool) Wait() {
75 p.init()
76
77 close(p.tasks)
78
79 p.handle.Wait()
80}
81
82// MaxGoroutines returns the maximum size of the pool.
83func (p *Pool) MaxGoroutines() int {

Callers 11

ExampleResultPoolFunction · 0.45
TestResultGroupFunction · 0.45
TestContextPoolFunction · 0.45
ExampleErrorPoolFunction · 0.45
TestErrorPoolFunction · 0.45
TestResultErrorGroupFunction · 0.45
TestResultContextPoolFunction · 0.45
ExamplePoolFunction · 0.45
TestPoolFunction · 0.45
BenchmarkPoolFunction · 0.45

Calls 1

initMethod · 0.95

Tested by 11

ExampleResultPoolFunction · 0.36
TestResultGroupFunction · 0.36
TestContextPoolFunction · 0.36
ExampleErrorPoolFunction · 0.36
TestErrorPoolFunction · 0.36
TestResultErrorGroupFunction · 0.36
TestResultContextPoolFunction · 0.36
ExamplePoolFunction · 0.36
TestPoolFunction · 0.36
BenchmarkPoolFunction · 0.36