Skip to content
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

add the ability to stop the event loop #495

Closed

Conversation

justinmchase
Copy link
Contributor

Fixes #494

Adds an optional "stop" function which when called will ultimately disable the histogram which will allow the node process to exit.

I also fixed a bug in the tests where a failed assertion in a setTimeout wasn't properly rejecting the test promise.

Screen Shot 2022-02-25 at 8 52 49 AM

@SimenB
Copy link
Collaborator

SimenB commented Feb 26, 2022

I also fixed a bug in the tests where a failed assertion in a setTimeout wasn't properly rejecting the test promise.

Since we're waiting for node to respond, maybe that could be pulled into a separate PR so we can land it? 🙂

@justinmchase
Copy link
Contributor Author

Merged with the other PR that broke out the change to the tests.

Also, you probably don't need to wait for the node "unref" response since, even if they agree and add it, you'll still probably want a way to stop this as its reasonable to want to stop it without stopping the process. Also, if they do accept it it will likely go into node 17, in which case I'll have to wait for node 18 (lts) which could be years frankly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EventLoop leak
2 participants