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

Function NewAfterTimer

timer.go:63–65  ·  view source on GitHub ↗

NewAfterTimer returns a new Timer containing a function that will be called after duration that specified by the duration argument. The duration d must be greater than zero; if not, NewAfterTimer will panic. Stop the timer to release associated resources.

(duration time.Duration, fn timer.Func)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestNewAfterTimerFunction · 0.85

Calls 1

NewCountTimerFunction · 0.85

Tested by 1

TestNewAfterTimerFunction · 0.68