MCPcopy
hub / github.com/g3n/engine / Initialize

Method Initialize

core/timer.go:39–43  ·  view source on GitHub ↗

Initialize initializes the timer manager. It is normally used when the TimerManager is embedded in another type.

()

Source from the content-addressed store, hash-verified

37// Initialize initializes the timer manager.
38// It is normally used when the TimerManager is embedded in another type.
39func (tm *TimerManager) Initialize() {
40
41 tm.nextID = 1
42 tm.timers = make([]timeout, 0)
43}
44
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

Callers 4

NewOrbitControlFunction · 0.45
InitMethod · 0.45
CloneMethod · 0.45
NewTimerManagerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected