Codebase list golang-github-vbauerster-mpb / 4a62b7a
correct BarPriority godoc Vladimir Bauer 3 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
5959 }
6060
6161 // BarQueueAfter puts this (being constructed) bar into the queue.
62 // BarPriority will be inherited from the argument bar.
6263 // When argument bar completes or aborts queued bar replaces its place.
6364 // If sync is true queued bar is suspended until argument bar completes
6465 // or aborts.
110111 }
111112
112113 // BarPriority sets bar's priority. Zero is highest priority, i.e. bar
113 // will be on top. If `BarReplaceOnComplete` option is supplied, this
114 // option is ignored.
114 // will be on top. This option isn't effective with `BarQueueAfter` option.
115115 func BarPriority(priority int) BarOption {
116116 return func(s *bState) {
117117 s.priority = priority