Codebase list golang-github-vbauerster-mpb / a4eeb61
don't restrict externalRefresh chan Vladimir Bauer 3 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3838
3939 // WithManualRefresh disables internal auto refresh time.Ticker.
4040 // Refresh will occur upon receive value from provided ch.
41 func WithManualRefresh(ch <-chan interface{}) ContainerOption {
41 func WithManualRefresh(ch chan interface{}) ContainerOption {
4242 return func(s *pState) {
4343 s.externalRefresh = ch
4444 s.disableAutoRefresh = true
5353 disableAutoRefresh bool
5454 rr time.Duration
5555 uwg *sync.WaitGroup
56 externalRefresh <-chan interface{}
56 externalRefresh chan interface{}
5757 renderDelay <-chan struct{}
5858 shutdownNotifier chan struct{}
5959 queueBars map[*Bar]*Bar