From 6af9311939af7710ecd515566a4fdaf4b0ff1f9a 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 1cffb5e2d5855f..9de9e13eabffba 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