Skip to content

Commit 6af9311

Browse files
gowpenMylesBorins
authored andcommitted
doc: correct EventEmitter reference
PR-URL: #16791 Fixes: #16789 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent fa5c706 commit 6af9311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ myEmitter.emit('event', 'a', 'b');
7777

7878
## Asynchronous vs. Synchronous
7979

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

0 commit comments

Comments
 (0)