*Bar.status ch buffer 1
Vladimir Bauer
9 years ago
| 464 | 464 |
total = b.lastState.total
|
| 465 | 465 |
current = b.lastState.current
|
| 466 | 466 |
} else {
|
| 467 | |
ch := make(chan state)
|
|
467 |
ch := make(chan state, 1)
|
| 468 | 468 |
b.stateReqCh <- ch
|
| 469 | 469 |
state := <-ch
|
| 470 | 470 |
total = state.total
|