NewWaitGroup creates a new WaitGroup.
()
| 8 | |
| 9 | // NewWaitGroup creates a new WaitGroup. |
| 10 | func NewWaitGroup() *WaitGroup { |
| 11 | return &WaitGroup{} |
| 12 | } |
| 13 | |
| 14 | // WaitGroup is the primary building block for scoped concurrency. |
| 15 | // Goroutines can be spawned in the WaitGroup with the Go method, |
no outgoing calls
searching dependent graphs…