correct BarPriority godoc
Vladimir Bauer
3 years ago
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | // BarQueueAfter puts this (being constructed) bar into the queue. |
| 62 | // BarPriority will be inherited from the argument bar. | |
| 62 | 63 | // When argument bar completes or aborts queued bar replaces its place. |
| 63 | 64 | // If sync is true queued bar is suspended until argument bar completes |
| 64 | 65 | // or aborts. |
| 110 | 111 | } |
| 111 | 112 | |
| 112 | 113 | // 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. | |
| 115 | 115 | func BarPriority(priority int) BarOption { |
| 116 | 116 | return func(s *bState) { |
| 117 | 117 | s.priority = priority |