We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00bb76a commit f70ec66Copy full SHA for f70ec66
src/execution/execute.js
@@ -1783,16 +1783,6 @@ export class Dispatcher {
1783
1784
resolved = true;
1785
1786
- if (this._isDone) {
1787
- resolve({
1788
- value: {
1789
- hasNext: false,
1790
- },
1791
- done: false,
1792
- });
1793
- return;
1794
- }
1795
-
1796
if (this._subsequentPayloads.length === 0) {
1797
// a different call to next has exhausted all payloads
1798
resolve({ value: undefined, done: true });
@@ -1820,6 +1810,11 @@ export class Dispatcher {
1820
1810
done: false
1821
1811
});
1822
1812
return;
1813
+ } else if (done) {
1814
+ // async iterable resolver just finished but there are pending payloads
1815
+ // return the next one
1816
+ resolve(this._race());
1817
+ return
1823
1818
}
1824
1819
1825
const returnValue: ExecutionPatchResult = {
0 commit comments