Skip to content

doc: emitter.removeListener within emit cycle clarification

Rodrigo Muino Tomonari requested to merge github/fork/drjokepu/4714 into master

As discussed in https://github.com/nodejs/node/issues/4759, listeners removed from an event while the event's emit cycle is underway will still be called in that cycle and the new listener array will only be used in subsequent calls. This change updates the documentation to explicitly clarify this behaviour.

Merge request reports

Loading