Release releases the latch, allowing all waiting goroutines to proceed.
()
| 17 | |
| 18 | // Release releases the latch, allowing all waiting goroutines to proceed. |
| 19 | func (g *Latch) Release() { |
| 20 | g.once.Do(func() { close(g.done) }) |
| 21 | } |
| 22 | |
| 23 | // Wait blocks until the latch is released. |
| 24 | func (g *Latch) Wait() { |
no outgoing calls