AsyncEventEmitter Class
Item Index
Methods
- emit static
- extend static
- listeners static
- on static
- once static
- removeAllListeners static
- removeListener static
- setMaxListeners static
Methods
emit
(
static
-
event
-
data
-
cb
Parameters:
-
event
String -
data
Object -
cb
Function(Error)
extend
(
static
-
prototype
Parameters:
-
prototype
Function
listeners
(
Array
static
-
event
Returns a list of the listeners for the specified event
Parameters:
-
event
String
Returns:
Array:
on
(
static
-
event
-
listener
Registers a listener for the specified event.
Parameters:
-
event
String -
listener
Function
Returns:
:
once
(
static
-
event
-
listener
Registers a listener to fire a single time for the specfied event
Parameters:
-
event
String -
listener
Function
Returns:
:
removeAllListeners
(
static
-
event
Removes all listeners for the specified event
Parameters:
-
event
String
Returns:
:
removeListener
(
static
-
event
-
listener
Removes the listener from the specified event
Parameters:
-
event
String -
listener
Function
Returns:
:
setMaxListeners
(
EventEmitter
static
-
n
Sets the maximum number of listeners for the emitter
Parameters:
-
n
Integer
Returns:
EventEmitter: