Codebase list golang-github-vbauerster-mpb / 766a85e
refactoring: ch to update Vladimir Bauer 3 years ago
1 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
265265 err = e
266266 }
267267 case <-p.done:
268 ch := make(chan bool)
268 update := make(chan bool)
269269 for err == nil {
270 s.hm.state(ch)
271 isUnrenderedState := <-ch
272 if isUnrenderedState {
270 s.hm.state(update)
271 if <-update {
273272 err = render()
274273 } else {
275274 break