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