MCPcopy Index your code
hub / github.com/g3n/engine / SetTimeout

Method SetTimeout

core/timer.go:47–50  ·  view source on GitHub ↗

SetTimeout sets a timeout with the specified duration and callback The function returns the timeout id which can be used to cancel the timeout

(td time.Duration, arg interface{}, cb TimerCallback)

Source from the content-addressed store, hash-verified

45// SetTimeout sets a timeout with the specified duration and callback
46// The function returns the timeout id which can be used to cancel the timeout
47func (tm *TimerManager) SetTimeout(td time.Duration, arg interface{}, cb TimerCallback) int {
48
49 return tm.setTimer(td, false, arg, cb)
50}
51
52// SetInterval sets a periodic timeout with the specified duration and callback
53// The function returns the timeout id which can be used to cancel the timeout

Callers 1

onMouseMethod · 0.80

Calls 1

setTimerMethod · 0.95

Tested by

no test coverage detected