vm2 icon indicating copy to clipboard operation
vm2 copied to clipboard

Better asynchronous code errors handling

Open ppedziwiatr opened this issue 2 years ago • 1 comments

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...

ppedziwiatr avatar Jun 26 '22 18:06 ppedziwiatr

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

XmiliaH avatar Jul 05 '22 12:07 XmiliaH