Constructs an event watcher.
Private m_Private m_Rest ...data: any[]Static Private s_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.
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.
Emits an arbitrary set of arguments to the callback function which is bound to the event named name.
Rest ...data: EventMap[K]Rest ...data: any[]Removes the specified watcher for the event named name.
Generated using TypeDoc
The EventWatcher class is utilized to handle events. When an event watcher emits an event, all of the callback functions bound to the event are called synchronously.