Wait blocks until all function calls from the Go method have returned, then returns the combined non-nil errors (if any) from them.
()
| 42 | // Wait blocks until all function calls from the Go method have returned, then |
| 43 | // returns the combined non-nil errors (if any) from them. |
| 44 | func (g *ErrWaitGroup) Wait() error { |
| 45 | g.wg.Wait() |
| 46 | if g.cancel != nil { |
| 47 | g.cancel() |
| 48 | } |
| 49 | return g.err |
| 50 | } |
| 51 | |
| 52 | // Go calls the given function in a new goroutine. |
| 53 | // It blocks until the new goroutine can be added without the number of |
no outgoing calls
no test coverage detected