Skip to content

Commit

Permalink
doc: correct EventEmitter reference
Browse files Browse the repository at this point in the history
PR-URL: #16791
Fixes: #16789
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
gowpen authored and MylesBorins committed Nov 14, 2017
1 parent fa5c706 commit 6af9311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ myEmitter.emit('event', 'a', 'b');

## Asynchronous vs. Synchronous

The `EventListener` calls all listeners synchronously in the order in which
The `EventEmitter` calls all listeners synchronously in the order in which
they were registered. This is important to ensure the proper sequencing of
events and to avoid race conditions or logic errors. When appropriate,
listener functions can switch to an asynchronous mode of operation using
Expand Down

0 comments on commit 6af9311

Please sign in to comment.