MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / NewTicker

Function NewTicker

internal/controller/runtime/ticker.go:27–30  ·  view source on GitHub ↗

NewTicker returns a Source that emits e every d.

(d time.Duration, e event.GenericEvent,
	h handler.EventHandler)

Source from the content-addressed store, hash-verified

25
26// NewTicker returns a Source that emits e every d.
27func NewTicker(d time.Duration, e event.GenericEvent,
28 h handler.EventHandler) source.Source {
29 return &ticker{Duration: d, GenericEvent: e, Handler: h}
30}
31
32// NewTickerImmediate returns a Source that emits e at start and every d.
33func NewTickerImmediate(d time.Duration, e event.GenericEvent,

Callers 1

TestTickerFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestTickerFunction · 0.68