Wait blocks until the WaitGroup counter is zero and closes error channel.
()
| 83 | // Wait blocks until the WaitGroup counter is zero |
| 84 | // and closes error channel. |
| 85 | func (w *Waiter) Wait() { |
| 86 | w.wg.Wait() |
| 87 | close(w.errch) |
| 88 | } |
| 89 | |
| 90 | // Err returns read-only error channel. |
| 91 | func (w *Waiter) Err() <-chan error { |
no outgoing calls