File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -1783,16 +1783,6 @@ export class Dispatcher {
1783
1783
1784
1784
resolved = true ;
1785
1785
1786
- if ( this . _isDone ) {
1787
- resolve ( {
1788
- value : {
1789
- hasNext : false ,
1790
- } ,
1791
- done : false ,
1792
- } ) ;
1793
- return ;
1794
- }
1795
-
1796
1786
if ( this . _subsequentPayloads . length === 0 ) {
1797
1787
// a different call to next has exhausted all payloads
1798
1788
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
1820
const returnValue : ExecutionPatchResult = {
You can’t perform that action at this time.
0 commit comments