Codebase list golang-github-vbauerster-mpb / 2c6862a
concise intro Vladimir Bauer 8 years ago
1 changed file(s) with 2 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
2727
2828 ## Usage
2929
30 Following is the simplest use case:
31
30 #### [Rendering single bar](examples/singleBar/main.go)
3231 ```go
3332 p := mpb.New(
3433 // override default (80) width
6766 p.Stop()
6867 ```
6968
70 However **mpb** was designed with concurrency in mind. Each new bar renders in its
71 own goroutine, therefore adding multiple bars is easy and safe:
72
69 #### [Rendering multiple bars](examples/simple/main.go)
7370 ```go
7471 var wg sync.WaitGroup
7572 p := mpb.New(mpb.WithWaitGroup(&wg))