WithPollingInterval sets the interval at which the diode is queried for new data. The default is 10ms.
(interval time.Duration)
| 24 | // WithPollingInterval sets the interval at which the diode is queried |
| 25 | // for new data. The default is 10ms. |
| 26 | func WithPollingInterval(interval time.Duration) PollerConfigOption { |
| 27 | return func(c *Poller) { |
| 28 | c.interval = interval |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | // WithPollingContext sets the context to cancel any retrieval (Next()). It |
| 33 | // will not change any results for adding data (Set()). Default is |