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

Function NewCountTimer

timer.go:45–57  ·  view source on GitHub ↗

NewCountTimer returns a new Timer containing a function that will be called with a period specified by the duration argument. After count times, timer will be stopped automatically, It adjusts the intervals for slow receivers. The duration d must be greater than zero; if not, NewCountTimer will pani

(interval time.Duration, count int, fn timer.Func)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

TestNewCountTimerFunction · 0.85
NewTimerFunction · 0.85
NewAfterTimerFunction · 0.85
NewCondTimerFunction · 0.85

Calls 1

NewTimerFunction · 0.92

Tested by 1

TestNewCountTimerFunction · 0.68