MCPcopy Create free account
hub / github.com/bytemode/pitaya-notes / NewTimer

Function NewTimer

timer.go:36–38  ·  view source on GitHub ↗

NewTimer returns a new Timer containing a function that will be called with a period specified by the duration argument. It adjusts the intervals for slow receivers. The duration d must be greater than zero; if not, NewTimer will panic. Stop the timer to release associated resources.

(interval time.Duration, fn timer.Func)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

AfterInitMethod · 0.92
AfterInitMethod · 0.92
AfterInitMethod · 0.92
AfterInitMethod · 0.92
TestNewTimerFunction · 0.70

Calls 1

NewCountTimerFunction · 0.85

Tested by 1

TestNewTimerFunction · 0.56