-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Promise.all() doesn't allow for handling exceptions. #142
Comments
This is same as #138 which was fixed in a commit but I didn't make a release yet as I don't understand how you would run this in real code because it requires synchronously or immediately rejected promise to be used with |
I don't think it is the same error, because it doesn't matter which order the promises are configured in my example, it never marked the error as handled even though it was. Regardless, the latest master does fix the issue, so I'm going to close this. Thanks! |
Yea it's not same issue but the fix and underlying problem is the same |
Wrote a small bit of sample code to test out another possible way of handling this. Since the Promises force Sync/Async behaviors. I am new to the language, and was wondering if this was Syntactically correct, or if I am tripping over some major pitfalls by doing things under this assumption. Link to a JSFiddle Promise.all Catch |
I was expecting that
Promise.all(promises).done(...)
would suppress the 'possibly unhandled exception' emission. I may be misunderstanding how this machinery works! Here's a test case:and the output:
Oh, and in case coffeescript makes you sad, here's the emitted JS:
The text was updated successfully, but these errors were encountered: