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
I know the project is not maintained anymore, but I just want to document this for anyone else who might spend time debugging this. I use fibers through Meteor and in Meteor I had the following code:
SomeDocuments.remove does some database requests (inside a fiber).
With Meteor 1.11.1 (which uses node v12.18.4) this makes the whole process block and never exit. It is documented that:
There is no way to prevent the exiting of the event loop at this point, and once all 'exit' listeners have finished running the Node.js process will terminate.
And:
Listener functions must only perform synchronous operations. The Node.js process will exit immediately after calling the 'exit' event listeners causing any additional work still queued in the event loop to be abandoned.
It seems running fibers in there messes up with things. So do not do it.
The text was updated successfully, but these errors were encountered:
I know the project is not maintained anymore, but I just want to document this for anyone else who might spend time debugging this. I use fibers through Meteor and in Meteor I had the following code:
SomeDocuments.remove
does some database requests (inside a fiber).With Meteor 1.11.1 (which uses node v12.18.4) this makes the whole process block and never exit. It is documented that:
And:
It seems running fibers in there messes up with things. So do not do it.
The text was updated successfully, but these errors were encountered: