wait for bars
Vladimir Bauer
3 years ago
| 270 | 270 |
p.cancel() // cancel all bars
|
| 271 | 271 |
_, _ = fmt.Fprintln(s.debugOut, err)
|
| 272 | 272 |
render = func() error { return nil }
|
| 273 | |
p.once.Do(p.shutdown)
|
|
273 |
go func() {
|
|
274 |
p.bwg.Wait()
|
|
275 |
p.once.Do(p.shutdown)
|
|
276 |
}()
|
| 274 | 277 |
}
|
| 275 | 278 |
case <-s.shutdownNotifier:
|
| 276 | 279 |
for s.heapUpdated {
|