Codebase list golang-github-vbauerster-mpb / d9ab224
Completed deprecated, use Complete() Vladimir Bauer 9 years ago
1 changed file(s) with 9 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
255255 }
256256 }
257257
258 // Completed signals to the bar, that process has been completed.
258 // Complete signals to the bar, that process has been completed.
259259 // You should call this method when total is unknown and you've reached the point
260 // of process completion.
261 func (b *Bar) Completed() {
260 // of process completion. If you don't call this method, it will be called
261 // implicitly, upon p.Stop() call.
262 func (b *Bar) Complete() {
262263 select {
263264 case b.completeReqCh <- struct{}{}:
264265 case <-b.done:
265266 return
266267 }
268 }
269
270 // Completed: deprecated! Use b.Complete()
271 func (b *Bar) Completed() {
272 b.Complete()
267273 }
268274
269275 func (b *Bar) flushed() {