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

Better asynchronous code errors handling #441

Open
ppedziwiatr opened this issue Jun 26, 2022 · 1 comment
Open

Better asynchronous code errors handling #441

ppedziwiatr opened this issue Jun 26, 2022 · 1 comment

Comments

@ppedziwiatr
Copy link

ppedziwiatr commented Jun 26, 2022

Hey,

is there a chance of adding a better errors handling for the async code?
I.e. such that would not require adding global handler for uncaughtException or unhandledRejection?

Adding such global handler causes that some errors, that in fact should cause the system to crash and be fixed asap (the "fail fast" principle) will be swallowed...

@XmiliaH
Copy link
Collaborator

XmiliaH commented Jul 5, 2022

It should be possible to add an uncaughtException handler. However, I do not have good ideas of how to implement an unhandledRejection handler.

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

2 participants