@@ -392,8 +392,7 @@ YieldIncrementalResults(data, errors, incrementalDataRecords):
392
392
- Append {GetCompletedEntry(pendingResult)} to {completed}.
393
393
- Remove {pendingResult} from {graph}, promoting its child Deferred Fragment
394
394
nodes to root nodes.
395
- - Let {newPendingResults} be a new set containing the result of
396
- {GetNonEmptyNewPending(graph, pendingResults)}.
395
+ - Let {newPendingResults} be the result of {GetNonEmptyNewPending(graph)}.
397
396
- Add all nodes in {newPendingResults} to {pendingResults}.
398
397
- Update {graph} to the subgraph rooted at nodes in {pendingResults}.
399
398
- Let {pending} be the result of {GetPendingEntry(newPendingResults)}.
@@ -413,18 +412,17 @@ BuildGraph(incrementalDataRecords, graph):
413
412
until {incrementalDataRecord} is connected to {newGraph}.
414
413
- Return {newGraph}.
415
414
416
- GetNonEmptyNewPending(graph, oldPendingResults ):
415
+ GetNonEmptyNewPending(graph):
417
416
418
- - If not provided, initialize {oldPendingResults } to the empty set.
419
- - Let {rootNodes} be the set of root nodes in {graph}.
417
+ - Initialize {newPendingResults } to the empty set.
418
+ - Initialize {rootNodes} to the set of root nodes in {graph}.
420
419
- For each {rootNode} of {rootNodes}:
421
- - If {rootNodes} is in {oldPendingResults}:
422
- - Continue to the next {rootNode}.
423
420
- If {rootNode} has no children Pending Incremental Data nodes:
424
421
- Let {children} be the set of child Deferred Fragment nodes of {rootNode}.
425
- - Remove {rootNode} from {rootNodes}.
426
422
- Add each of the nodes in {children} to {rootNodes}.
427
- - Return {rootNodes}.
423
+ - Continue to the next {rootNode} of {rootNodes}.
424
+ - Add {rootNode} to {newPendingResults}.
425
+ - Return {newPendingResults}.
428
426
429
427
GetInitialResult(data, errors, pendingResults):
430
428
0 commit comments