Codebase list golang-github-vbauerster-mpb / 9d83da5
Minor updates (readme, some examples) Vladimir Bauer 8 years ago
4 changed file(s) with 7 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
3434 mpb.WithWidth(100),
3535 // override default "[=>-]" format
3636 mpb.WithFormat("╢▌▌░╟"),
37 // override default 100ms refresh rate
38 mpb.WithRefreshRate(120*time.Millisecond),
37 // override default 120ms refresh rate
38 mpb.WithRefreshRate(100*time.Millisecond),
3939 )
4040
4141 total := 100
9696 }
9797 }()
9898 }
99 // Wait for incr loop goroutines to finish,
100 // and shutdown mpb's rendering goroutine
99 // Gracefully shutdown mpb's monitor goroutine
101100 p.Stop()
102101 ```
103102
3535 quit chan struct{}
3636 once sync.Once
3737
38 // cacheState is used after b.done is receiveable
38 // cacheState is used after quit is closed
3939 cacheState *bState
4040 }
4141
3838 }
3939 }()
4040 }
41 // Wait for incr loop goroutines to finish,
42 // and shutdown mpb's rendering goroutine
41 // Gracefully shutdown mpb's monitor goroutine
4342 p.Stop()
4443 }
1313 mpb.WithWidth(100),
1414 // override default "[=>-]" format
1515 mpb.WithFormat("╢▌▌░╟"),
16 // override default 100ms refresh rate
17 mpb.WithRefreshRate(120*time.Millisecond),
16 // override default 120ms refresh rate
17 mpb.WithRefreshRate(100*time.Millisecond),
1818 )
1919
2020 total := 100