Codebase list golang-github-vbauerster-mpb / 75c10eb
cancel at (*Bar).render wait in (*pState).flush Vladimir Bauer 4 years ago
2 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
341341 reader, lines = s.extender(nil, s.reqWidth, stat)
342342 b.recoveredPanic = p
343343 }
344 b.frameCh <- &frame{
344 frame := frame{
345345 reader: reader,
346346 lines: lines + 1,
347347 shutdown: s.completed || s.aborted,
348348 }
349 if frame.shutdown {
350 b.cancel()
351 }
352 b.frameCh <- &frame
349353 }()
350354 if b.recoveredPanic == nil {
351355 reader = s.draw(stat)
268268 return err
269269 }
270270 if frame.shutdown {
271 b.cancel()
272271 <-b.done // waiting for b.done, so it's safe to read b.bs
273272 var toDrop bool
274273 if qb, ok := s.queueBars[b]; ok {