Codebase list golang-github-vbauerster-mpb / ff58605
method rename Vladimir Bauer 6 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
219219 if complete && !s.toComplete {
220220 s.current = s.total
221221 s.toComplete = true
222 go b.refreshNowTillShutdown()
222 go b.refreshTillShutdown()
223223 }
224224 }:
225225 case <-b.done:
237237 if s.total > 0 && s.current >= s.total {
238238 s.current = s.total
239239 s.toComplete = true
240 go b.refreshNowTillShutdown()
240 go b.refreshTillShutdown()
241241 }
242242 }:
243243 case <-b.done:
267267 if s.total > 0 && s.current >= s.total {
268268 s.current = s.total
269269 s.toComplete = true
270 go b.refreshNowTillShutdown()
270 go b.refreshTillShutdown()
271271 }
272272 }:
273273 case <-b.done:
388388 }
389389 }
390390
391 func (b *Bar) refreshNowTillShutdown() {
391 func (b *Bar) refreshTillShutdown() {
392392 for {
393393 select {
394394 case b.container.refreshCh <- time.Now():