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

Method Wait

waitgroup.go:38–43  ·  view source on GitHub ↗

Wait will block until all goroutines spawned with Go exit and will propagate any panics spawned in a child goroutine.

()

Source from the content-addressed store, hash-verified

36// Wait will block until all goroutines spawned with Go exit and will
37// propagate any panics spawned in a child goroutine.
38func (h *WaitGroup) Wait() {
39 h.wg.Wait()
40
41 // Propagate a panic if we caught one from a child goroutine.
42 h.pc.Repanic()
43}
44
45// WaitAndRecover will block until all goroutines spawned with Go exit and
46// will return a *panics.Recovered if one of the child goroutines panics.

Callers 5

ExampleWaitGroupFunction · 0.95
TestWaitGroupFunction · 0.95
TestCatcherFunction · 0.95
ForEachIdxMethod · 0.95
WaitAndRecoverMethod · 0.45

Calls 1

RepanicMethod · 0.80

Tested by 3

ExampleWaitGroupFunction · 0.76
TestWaitGroupFunction · 0.76
TestCatcherFunction · 0.76