promise-evt-emitter

1.0.0 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i promise-evt-emitter

      Weekly Downloads

      0

      Version

      1.0.0

      License

      WTFPL

      Unpacked Size

      22.6 kB

      Total Files

      5

      Last publish

      Collaborators

      • jcloudyu