Codebase list golang-github-vbauerster-mpb / 320a8c8
update remove example Vladimir Bauer 9 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
4343 for i := 0; i < 100; i++ {
4444 sleep(blockSize)
4545 bar2.Incr(1)
46 if bar2.Current() > 42 && p.RemoveBar(bar2) {
46 stat := bar2.GetStatistics()
47 if stat.Current > 42 && p.RemoveBar(bar2) {
4748 break
4849 }
4950 blockSize = rand.Intn(maxBlockSize) + 1