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

Should I override Promises with Bluebirds? #21

Closed
why-jay opened this issue May 16, 2015 · 1 comment
Closed

Should I override Promises with Bluebirds? #21

why-jay opened this issue May 16, 2015 · 1 comment

Comments

@why-jay
Copy link
Owner

why-jay commented May 16, 2015

nodejs/node#758

@why-jay
Copy link
Owner Author

why-jay commented Jun 1, 2015

I have decided to override Promises with Bluebirds by doing global.Promise = require('bluebird').

I throw a lot of Errors inside async functions, and the default Promise objects don't report unhandled exceptions. So I had to manually try-catch all Errors every time I wrote an async function. This is verbose.

Bluebird fixes this issue with the unhandedRejection event.

@why-jay why-jay closed this as completed in a319a72 Jun 1, 2015
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