Codebase list golang-github-vbauerster-mpb / 6e70bea
refresh ch buffer 1 Vladimir Bauer 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
216216 }
217217
218218 func (p *Progress) newTicker(s *pState, isTerminal bool) chan time.Time {
219 ch := make(chan time.Time)
219 ch := make(chan time.Time, 1)
220220 go func() {
221221 var autoRefresh <-chan time.Time
222222 if (isTerminal || s.forceAutoRefresh) && !s.disableAutoRefresh {