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

exitEventLoop should be able to set the exit code #302

Open
Geod24 opened this issue Nov 10, 2021 · 0 comments
Open

exitEventLoop should be able to set the exit code #302

Geod24 opened this issue Nov 10, 2021 · 0 comments

Comments

@Geod24
Copy link
Contributor

Geod24 commented Nov 10, 2021

Currently, it seems runEventLoop always return 0.
However, with my use case, I want to do some setup after the event loop has started. If that setup fails, I want to exit and inform the user. Currently this requires me to add a custom global and return it. However exitEventLoop should probably do that.

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

No branches or pull requests

1 participant