-
-
Notifications
You must be signed in to change notification settings - Fork 596
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
Document when the app exits #446
Comments
Can you create a minimal reproduction of the problem you're seeing? |
I'm also curious how this works. In the base example if I have the counter running the app won't exit, but if I replace it with a |
This is less an Ink-specific thing and more a Node thing. The CLI stays alive as long as there are open tasks/processes for Node to run. Once those complete, it closes. |
I am totally confused here. When running the counter example I can't kill the program even if I use the |
I'm also having issues with the program not exiting. I wonder what are the tools and strategies to use to find what is the real issue. |
It's not clear to me when the app exits or what keeps it alive.
I tried the example with the counter that uses
setInterval
and the app keeps running.In my code, I'm using some async calls but the app immediately exits.
I couldn't find any documentation regarding what keeps the app alive or how to disable it from exiting.
The text was updated successfully, but these errors were encountered: