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
The above code executes the emit method without any await. The way this library is currently implemented, this is no problem. But for my project I derived a class from emittery where I made an override of emit to yield the control back to the event loop. I did this to make every emit truely async and prevent any event from being executed synchronously. This might be a good feature for emittery too, but that is beside the point here. Here is my implementation:
emittery/index.js
Lines 167 to 176 in 69193ca
The above code executes the
emit
method without any await. The way this library is currently implemented, this is no problem. But for my project I derived a class from emittery where I made an override ofemit
to yield the control back to the event loop. I did this to make every emit truely async and prevent any event from being executed synchronously. This might be a good feature for emittery too, but that is beside the point here. Here is my implementation:This lead to a lot of errors from this line, because the
canEmitMetaEvents
flag is already reset again:emittery/index.js
Line 351 in 69193ca
This issue could be solved by using the suggested code in this comment: #97 (comment)
The text was updated successfully, but these errors were encountered: