WithDebugOutput(os.Stderr)
Vladimir Bauer
3 years ago
| 31 | 31 |
}
|
| 32 | 32 |
var wg sync.WaitGroup
|
| 33 | 33 |
// passed wg will be accounted at p.Wait() call
|
| 34 | |
p := mpb.New(mpb.WithWaitGroup(&wg))
|
|
34 |
p := mpb.New(mpb.WithWaitGroup(&wg), mpb.WithDebugOutput(os.Stderr))
|
| 35 | 35 |
wg.Add(totalBars)
|
| 36 | 36 |
|
| 37 | 37 |
for i := 0; i < totalBars; i++ {
|