don't restrict externalRefresh chan
Vladimir Bauer
3 years ago
| 38 | 38 | |
| 39 | 39 | // WithManualRefresh disables internal auto refresh time.Ticker. |
| 40 | 40 | // Refresh will occur upon receive value from provided ch. |
| 41 | func WithManualRefresh(ch <-chan interface{}) ContainerOption { | |
| 41 | func WithManualRefresh(ch chan interface{}) ContainerOption { | |
| 42 | 42 | return func(s *pState) { |
| 43 | 43 | s.externalRefresh = ch |
| 44 | 44 | s.disableAutoRefresh = true |