-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Unhandled rejection when joining chains with common rejected parent #645
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
Comments
Can you check if this happens with the correct .join syntax? |
It does not happen with I was not aware this was incorrect.. How come? |
The old join syntax was deprecated and then superseded with the (a, b, fn) one a while ago. That said, the face of still works (the old syntax) means that either:
Either is fine by me - the current behavior isn't good. |
What were the reasons for deprecating the "old" syntax? I think it aligns nicely with How would I do something like this with the "new" syntax: Promise.join(a, b).bind(console).spread(console.log) |
You can always use Promise.all
though when I proposed the original change for |
Hmm.. I really think of |
Seems like |
Yea it's a bug that I fixed a while ago in 3.0 with b182d5b . Maybe it could be backported |
Fixed in 2.9.28 |
Maybe I should do this kind of stuff in another way, but I've hit it a couple of times now and it's extremely hard to debug and, at least in my head, seems inconsistent and unintuitive.
The workaround is to "silent" the
a
-chain in the last join with.catch(noop)
(#483 in the future), but thenc
needs to know about the fact thata
is part ofc
which is not always easy.Does it make sense?
The text was updated successfully, but these errors were encountered: