From 24178ac002caa68dac2869fee6733e89006346c5 Mon Sep 17 00:00:00 2001 From: gowpen <33104741+gowpen@users.noreply.github.com> Date: Mon, 6 Nov 2017 02:37:50 -0700 Subject: [PATCH] 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 Reviewed-By: Luigi Pinca Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell --- doc/api/events.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/events.md b/doc/api/events.md index 99c2e1514b43a3..adc97b306292e9 100644 --- a/doc/api/events.md +++ b/doc/api/events.md @@ -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