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

Function NewCondTimer

timer.go:71–79  ·  view source on GitHub ↗

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

(condition timer.Condition, fn timer.Func)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestNewCondTimerFunction · 0.85

Calls 2

NewCountTimerFunction · 0.85
SetConditionMethod · 0.80

Tested by 1

TestNewCondTimerFunction · 0.68