refresh ch buffer 1
Vladimir Bauer
3 years ago
| 216 | 216 |
}
|
| 217 | 217 |
|
| 218 | 218 |
func (p *Progress) newTicker(s *pState, isTerminal bool) chan time.Time {
|
| 219 | |
ch := make(chan time.Time)
|
|
219 |
ch := make(chan time.Time, 1)
|
| 220 | 220 |
go func() {
|
| 221 | 221 |
var autoRefresh <-chan time.Time
|
| 222 | 222 |
if (isTerminal || s.forceAutoRefresh) && !s.disableAutoRefresh {
|