Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants