promise-evt-emitter
v1.0.0
Published
The event emitter that can resolve promise to force synchronization among listeners
Downloads
4
Readme
EventEmitter
This project is based on Olical's EventEmitter. With the following tinny modifications. Please refer to Olical's usage guide for usage information!
Modifications
- Remove setOnceReturnValue api, since its not common to use.
- Make emitEvent api be able to handle Promises returned by the listeners to guarantee order among them.
- emitEvent api will return a Promise instead of the instance itself.