Codebase list golang-github-vbauerster-mpb / 9772fb0
minor: godoc Vladimir Bauer 3 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
170170 }
171171
172172 // EnableTriggerComplete enables triggering complete event. It's
173 // effective only for bar which was constructed with `total <= 0` and
173 // effective only for bars which were constructed with `total <= 0` and
174174 // after total has been set with (*Bar).SetTotal(int64, false). If bar
175175 // has been incremented to the total, complete event is triggered right
176176 // away.
194194
195195 // SetTotal sets total to an arbitrary value. It's effective only for
196196 // bar which was constructed with `total <= 0`. Setting total to negative
197 // value is equivalent to (*Bar).SetTotal((*Bar).Current(), bool).
197 // value is equivalent to (*Bar).SetTotal((*Bar).Current(), bool) but faster.
198198 // If triggerCompleteNow is true, total value is set to current and
199199 // complete event is triggered right away.
200200 func (b *Bar) SetTotal(total int64, triggerCompleteNow bool) {