-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow async code #1
Comments
Don't know if |
Relevant Node.js discussion: nodejs/node#29480 |
This is slightly different from that issue actually. We purposely disallow async tasks to be queued while node is exiting, and it isn't a goal of ours to allow that, since you could just delay the process exiting indefinitely... |
It wont stop users from stopping process anyway, if they want to dismiss some signals they can do it. It is very useful for cleaning spawned and detached resources. |
I could delay it indefinitely synchronously already. I don't see why that should stop a highly desired feature. If delaying it indefinitely is a problem, add a reasonable timeout that can be configured. |
Currently, only sync code can be executed.
Could use the
beforeExit
event.The text was updated successfully, but these errors were encountered: