update doc for BarQueueAfter
Vladimir Bauer
4 years ago
| 58 | 58 | } |
| 59 | 59 | } |
| 60 | 60 | |
| 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 { | |
| 65 | 66 | return nil |
| 66 | 67 | } |
| 67 | 68 | return func(s *bState) { |