EventEmitter2

most-data/types~ EventEmitter2

EventEmitter2 class is an extension of node.js EventEmitter class where listeners are excuting in series.

Constructor

new EventEmitter2()

Source:

Extends

  • EventEmitter

Methods

emit(event, args, callback)

Raises the specified event and executes event listeners in series.
Parameters:
Name Type Description
event String The event that is going to be raised.
args * An object that contains the event arguments.
callback function A callback function to be invoked after the execution.
Source: