File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -157,11 +157,6 @@ export class IncrementalGraph {
157157 subsequentResultRecord : SubsequentResultRecord ,
158158 ) : void {
159159 this . _rootNodes . delete ( subsequentResultRecord ) ;
160- if ( this . _rootNodes . size === 0 ) {
161- for ( const resolve of this . _nextQueue ) {
162- resolve ( { value : undefined , done : true } ) ;
163- }
164- }
165160 }
166161
167162 private _addIncrementalDataRecords (
@@ -336,6 +331,11 @@ export class IncrementalGraph {
336331 while ( ( completed = this . _completedQueue . shift ( ) ) !== undefined ) {
337332 yield completed ;
338333 }
334+ if ( this . _rootNodes . size === 0 ) {
335+ for ( const resolve of this . _nextQueue ) {
336+ resolve ( { value : undefined , done : true } ) ;
337+ }
338+ }
339339 }
340340
341341 private _enqueue ( completed : IncrementalDataRecordResult ) : void {
You can’t perform that action at this time.
0 commit comments