Skip to content

Commit

Permalink
comment for future self
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Aug 17, 2024
1 parent c0a9ceb commit 3af1f33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bar.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ func (b *Bar) serve(bs *bState) {
case <-b.ctx.Done():
decoratorsOnShutdown(bs.decorators[0])
decoratorsOnShutdown(bs.decorators[1])
// bar can be aborted by canceling parent ctx
// without actually calling b.Abort
bs.aborted = !bs.completed()
b.bs = bs
close(b.bsOk)
Expand Down

0 comments on commit 3af1f33

Please sign in to comment.