examples update
Vladimir Bauer
9 years ago
| 57 | 57 |
|
| 58 | 58 |
wg.Wait()
|
| 59 | 59 |
p.Stop()
|
|
60 |
// p.AddBar(1) // panic: you cannot reuse p, create new one!
|
| 60 | 61 |
fmt.Println("stop")
|
| 61 | |
// p.AddBar(1) // panic: send on closed channnel
|
| 62 | 62 |
}
|
| 57 | 57 |
|
| 58 | 58 |
wg.Wait()
|
| 59 | 59 |
p.Stop()
|
|
60 |
// p.AddBar(1) // panic: you cannot reuse p, create new one!
|
| 60 | 61 |
fmt.Println("stop")
|
| 61 | |
// p.AddBar(1) // panic: send on closed channnel
|
| 62 | 62 |
}
|
| 62 | 62 |
|
| 63 | 63 |
wg.Wait()
|
| 64 | 64 |
p.Stop()
|
|
65 |
// p.AddBar(1) // panic: you cannot reuse p, create new one!
|
| 65 | 66 |
fmt.Println("stop")
|
| 66 | |
// p.AddBar(1) // panic: send on closed channnel
|
| 67 | 67 |
}
|
| 56 | 56 |
|
| 57 | 57 |
wg.Wait()
|
| 58 | 58 |
p.Stop()
|
|
59 |
// p.AddBar(1) // panic: you cannot reuse p, create new one!
|
| 59 | 60 |
fmt.Println("stop")
|
| 60 | |
// p.AddBar(1) // panic: send on closed channnel
|
| 61 | 61 |
}
|
| 62 | 62 |
|
| 63 | 63 |
func getDecor() mpb.DecoratorFunc {
|