Codebase list golang-github-vbauerster-mpb / 93a05f5
wait after flush Vladimir Bauer 3 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
353353 }
354354 }
355355
356 err := cw.Flush(readRows - popCount)
356357 wg.Wait()
357358 s.rows = s.rows[:0]
358359 s.pool = s.pool[:0]
359 return cw.Flush(readRows - popCount)
360 return err
360361 }
361362
362363 func (s *pState) newTicker(done <-chan struct{}) chan time.Time {