(workersWG *sync.WaitGroup)
| 211 | } |
| 212 | |
| 213 | func (m *Manager) startWorkers(workersWG *sync.WaitGroup) { |
| 214 | if workersWG == nil { |
| 215 | return |
| 216 | } |
| 217 | |
| 218 | for range m.workerCount { |
| 219 | workersWG.Go(m.runWorker) |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | func (m *Manager) shutdown(signalQuit, cancelInflight bool, quitCh chan struct{}, workersWG *sync.WaitGroup) { |
| 224 | m.setStopping(true) |