(capacity int)
| 29 | } |
| 30 | |
| 31 | func newBoundedWaitGroup(capacity int) *boundedWaitGroup { |
| 32 | return &boundedWaitGroup{sem: make(chan struct{}, capacity)} |
| 33 | } |
| 34 | |
| 35 | func (w *boundedWaitGroup) Add(delta int) { |
| 36 | if delta <= 0 { |
no outgoing calls
searching dependent graphs…