mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: correct EventEmitter reference
PR-URL: https://github.com/nodejs/node/pull/16791 Fixes: https://github.com/nodejs/node/issues/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>
This commit is contained in:
1 parent
bf123f3dc2
commit
24178ac002
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user