Determines whether or not the callbacks associated with each event should happen in an async fashion or not. Default is false, which means events are synchronous
A map, with each property being an array of callbacks.
Alias of EventEmitter.on().
Emits a particular event with the option of passing optional parameters which are going to be processed by the callback provided signatures match (i.e. if passing emit(event, arg0, arg1) the listener should take two parameters)
the name of the event
optional object passed with the event
Adds a listener to the queue of callbacks associated to an event
the name(s) of the event(s) to listen to
callback function of listener to attach
the index of the callback in the array of listeners for a particular event
Removes the listener at position 'index' from the event 'eventName'
the name(s) of the event(s) which the listener is attached to
the listener callback function to remove from emitter
Generated using TypeDoc
LokiEventEmitter is a minimalist version of EventEmitter. It enables any constructor that inherits EventEmitter to emit events and trigger listeners that have been added to the event through the on(event, callback) method
LokiEventEmitter