Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bitrinjani committed Jan 14, 2018
1 parent d5f08c1 commit 3b58c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -11,7 +11,7 @@ npm install @bitr/awaitable-event-emitter

# Why do you need this library?

In the native EventEmitter, it is not easy to know when `emit` has finished executing the registered listeners because `emit` returns immediately without waiting for promises. In this enhanced version, you can await `emitParallel`/`emitSerial` that returns Promise.
In the native EventEmitter, it is not easy to know when `emit` has finished executing async listeners because `emit` returns immediately without waiting for promises. In this enhanced version, you can await `emitParallel`/`emitSerial` that returns Promise.

```typescript
class Awaitable extends AwaitableEventEmitter {
Expand Down

0 comments on commit 3b58c90

Please sign in to comment.