Wait waits until the WaitGroup counter is zero.
()
| 22 | |
| 23 | // Wait waits until the WaitGroup counter is zero. |
| 24 | func (w *Wait) Wait() { |
| 25 | w.wg.Wait() |
| 26 | } |
| 27 | |
| 28 | // WaitTimeout waits until the WaitGroup counter is zero or timeout. |
| 29 | // It returns true if timed out. |
no outgoing calls