Codebase list golang-github-vbauerster-mpb / 3444278
update doc for BarQueueAfter Vladimir Bauer 4 years ago
1 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
5858 }
5959 }
6060
61 // BarQueueAfter queues this (being constructed) bar to relplace
62 // runningBar after it has been completed.
63 func BarQueueAfter(runningBar *Bar) BarOption {
64 if runningBar == nil {
61 // BarQueueAfter puts this (being constructed) bar into the queue.
62 // Queued bar will run after argument bar completes, replacing its
63 // place. While bar is queued all of its methods are blocked.
64 func BarQueueAfter(bar *Bar) BarOption {
65 if bar == nil {
6566 return nil
6667 }
6768 return func(s *bState) {