Timers handler. The purpose is to keep track of executing timers. Can be added to inline script context to override builtin timers.
Default timers behavior.
Arguments:
options: optional objectsetTimeout: optional function, defaults to builtinsetTimeoutclearTimeout: optional function, defaults to builtinclearTimeout
Returns:
executing: list with executing timersregister(owner): register timers ownersetTimeout: wrapped optionssetTimeoutclearTimeout: wrapped optionsclearTimeout
Register timers with owner. Called from TimerEventDefinition.
Arguments:
owner: owning object, usually the activity in question
Returns:
setTimeout: callssetTimeoutclearTimeout: clear timeout function
Adds timer to list of executing timers, calls options setTimeout, and returns timer.
Returns timer:
timerId: unique idowner: registered owner if any, defaults to timers instancetimerRef: return value of builtin or overriddensetTimeout
Removes timer from list of executing timers and calls options clearTimeout with ref.timerRef.