API Docs for: 0.8.0
Show:

AsyncEventEmitter Class

Item Index

Methods

Methods

emit

(
  • event
  • data
  • cb
)
static

Parameters:

  • event String
  • data Object
  • cb Function

    (Error)

extend

(
  • prototype
)
static

Parameters:

  • prototype Function

listeners

(
  • event
)
Array static

Returns a list of the listeners for the specified event

Parameters:

  • event String

Returns:

Array:

on

(
  • event
  • listener
)
static

Registers a listener for the specified event.

Parameters:

  • event String
  • listener Function

Returns:

:

once

(
  • event
  • listener
)
static

Registers a listener to fire a single time for the specfied event

Parameters:

  • event String
  • listener Function

Returns:

:

removeAllListeners

(
  • event
)
static

Removes all listeners for the specified event

Parameters:

  • event String

Returns:

:

removeListener

(
  • event
  • listener
)
static

Removes the listener from the specified event

Parameters:

  • event String
  • listener Function

Returns:

:

setMaxListeners

(
  • n
)
EventEmitter static

Sets the maximum number of listeners for the emitter

Parameters:

  • n Integer

Returns:

EventEmitter: