You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
doc: Explicitly indicate that EventEmitter's listeners will still be invoked if they were removed during the emit cycleΒ #4759
As discussed in nodejs/node-v0.x-archive#7872, EventEmitter's listeners are still called if they are removed during the emit() cycle. It was agreed that this is the intended behavior, however, there is nothing in EventEmitter's documentation that would explicitly indicate that.
I think the documentation needs to be updated to clarify this behavior, because it's not necessarily obvious.
Activity
cjihrig commentedon Jan 19, 2016
Documentation patches are welcome.
doc: emitter.removeListener clarification
doc: update removeListener behaviour
doc: update removeListener behaviour
doc: update removeListener behaviour
doc: update removeListener behaviour
doc: update removeListener behaviour
doc: update removeListener behaviour