Private m_Private m_Private m_Private m_Returns true if the timer is running; otherwise returns false.
Returns true if events are blocked; otherwise returns false.
If blocked is true, then events emitted by this event watcher will be blocked, meaning that emitting an event will not trigger any callback functions that are bound to it.
Returns the timeout interval in milliseconds. The default value for this property is 0. A timer with a timeout interval of 0 will time out as soon as all the events in the system's event queue have been processed.
Sets the timeout interval of this timer.
Returns whether the timer is a single-shot timer or not, the default value is false.
Sets whether the timer is a single-shot timer or not.
Returns the timer id.
Static senderReturns the object that sent the event.
Adds a callback function that's going to be called when the event is emitted.
Rest ...data: EventMap[K]Rest ...data: any[]Delegates this event watcher to handle the given watcher's event named name.
Private destroyEmits an arbitrary set of arguments to the callback function which is bound to the event named name.
Rest ...data: EventMap[K]Rest ...data: any[]Private startRemoves the specified watcher for the event named name.
Generated using TypeDoc
The Timer class provides repetitive and single-shot timers.