async-emitter
v1.5.3
Published
Asynchronous, non-blocking EventEmitter
Downloads
5,381
Readme
Emitter
Non-blocking event emitter
Install via npm
$ npm install --save async-emitter
API
Class Properties
- function Emitter.nextTick
- boolean Emitter.warn
Instance Methods
- {Emitter} emitter.on( string event, function|object handler )
- {Emitter} emitter.once( string event, function|object handler )
- {Boolean} emitter.emit( string event, [arg1], [arg2], [...] )
- {Boolean} emitter.emitSync( string event, [arg1], [arg2], [...] )
- {Emitter} emitter.removeListener( string event, function|object handler )
- {Emitter} emitter.removeAllListeners( string [event] )
- {Emitter} emitter.setMaxListeners( number value )
- {Array} emitter.listeners( string event )