-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fix(stream): continue on iterator error values #2980
fix(stream): continue on iterator error values #2980
Conversation
Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com>
# Conflicts: # src/execution/execute.js
… resovlers # Conflicts: # src/execution/execute.js
@robrichard @IvanGoncharov this is more of a question than a PR -- what is the desired behavior? |
I don't think it's expected to receive more values after an async iterable throws an error. How is this handled with subscriptions? |
That’s just it, this code is not about the iterator returning an error, that’s further down. This code section is an error encountered in completion of a list item. With iterables, the next item is allowed to be processed, shouldn’t it be the same with async iterables? |
Added tests to explain |
Yes! Will rework when I have a moment to target that branch |
8ee3876
to
cf0f829
Compare
aec6fd9
to
ac0de32
Compare
if the iterator errors when attempting to get the next value, we can assume subsequent calls to next will also error, and abort, but if we successfully get the next value, but it ends up triggering an error, we can continue, optimistic that the next value will not do so.
ac0de32
to
4b1547d
Compare
ready for review |
f1ddb83
to
10f12a1
Compare
Bump, would this be accepted if rebased? |
@yaacovCR I pulled this in while rebasing. Thanks! |
if the iterator errors when attempting to get the next value, we can assume subsequent calls to next will also error, and abort, but if we successfully get the next value, but it ends up triggering an error, we can continue, optimistic that the next value will not do so.