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
Im creating 2 separate message handlers for the same topic.
inside the first message handler it removes itself via removeListener() to imitate a once() call:
Im creating 2 separate message handlers for the same topic.
inside the first message handler it removes itself via removeListener() to imitate a once() call:
I would expect both of the handlers to be called and after that the emit callback.
so the expected output should be:
the second callback and the emit callback are newver called and the actual output is:
I think the issue is that when emitting, fastparallel is given the same array instance that is used to hold (and remove for that matter) message handlers here: https://github.com/mcollina/mqemitter/blob/master/mqemitter.js#L121
The text was updated successfully, but these errors were encountered: