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
+1
-1
bar.go
less
more
400
400
401
401
// Wait blocks until bar is completed or aborted.
402
402
func (b *Bar) Wait() {
403
<-b.ctx.Done()
403
<-b.bsOk
404
404
}
405
405
406
406
func (b *Bar) serve(bs *bState) {