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

Global handler for catching any unhandled rejection #108

Open
darky opened this issue May 14, 2022 · 2 comments
Open

Global handler for catching any unhandled rejection #108

darky opened this issue May 14, 2022 · 2 comments

Comments

@darky
Copy link

darky commented May 14, 2022

Would be good to have ability to setup global handler for catching any unhandled rejection
Something like process.on('unhandledRejection', ... in Node.js
https://nodejs.org/dist/latest-v18.x/docs/api/process.html#event-unhandledrejection

@niwinz
Copy link
Member

niwinz commented Oct 6, 2022

The main issue I found for it, is that we need to dectect JVM, JS/Browser, JS/Node.
If you think you can implement and uniform api that works for all the cases, the PR will be welcome.

@niwinz
Copy link
Member

niwinz commented Oct 6, 2022

Probably promesa.util is good namespace to place this code.

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