Codebase list golang-github-vbauerster-mpb / ddd7aba
bar wait on b.bsOk b.bsOk is closed on b.serve quit Vladimir Bauer 1 year, 10 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
400400
401401 // Wait blocks until bar is completed or aborted.
402402 func (b *Bar) Wait() {
403 <-b.ctx.Done()
403 <-b.bsOk
404404 }
405405
406406 func (b *Bar) serve(bs *bState) {