MCPcopy
hub / github.com/rs/zerolog / WithPollingInterval

Function WithPollingInterval

diode/internal/diodes/poller.go:26–30  ·  view source on GitHub ↗

WithPollingInterval sets the interval at which the diode is queried for new data. The default is 10ms.

(interval time.Duration)

Source from the content-addressed store, hash-verified

24// WithPollingInterval sets the interval at which the diode is queried
25// for new data. The default is 10ms.
26func 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

Callers 1

NewWriterFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected