doc: update removeListener behaviour · nodejs/node@f2bd9cd · GitHub
Skip to content

Commit f2bd9cd

Browse files
vaibhav93benjamingr
authored andcommitted
doc: update removeListener behaviour
This commit updates events doc to describe removeListener behaviour when it is called within a listener. An example is added to make it more evident. A test is also incuded to make this behaviour consistent in future releases. Fixes: #4759 PR-URL: #5201 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent b217460 commit f2bd9cd

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

doc/api/events.markdown

Lines changed: 37 additions & 0 deletions

test/parallel/test-event-emitter-remove-listeners.js

Lines changed: 19 additions & 0 deletions

0 commit comments

Comments
 (0)