Skip to content

Commit 6d3fccb

Browse files
committed
fix
1 parent acc720b commit 6d3fccb

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

spec/Section 6 -- Execution.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,7 @@ YieldIncrementalResults(data, errors, incrementalDataRecords):
395395
- Append {GetCompletedEntry(pendingResult)} to {completed}.
396396
- Remove {pendingResult} from {graph}, promoting its child Deferred Fragment
397397
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)}.
400399
- Add all nodes in {newPendingResults} to {pendingResults}.
401400
- Update {graph} to the subgraph rooted at nodes in {pendingResults}.
402401
- Let {pending} be the result of {GetPendingEntry(newPendingResults)}.
@@ -416,18 +415,17 @@ BuildGraph(incrementalDataRecords, graph):
416415
until {incrementalDataRecord} is connected to {newGraph}.
417416
- Return {newGraph}.
418417

419-
GetNonEmptyNewPending(graph, oldPendingResults):
418+
GetNonEmptyNewPending(graph):
420419

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}.
423422
- For each {rootNode} of {rootNodes}:
424-
- If {rootNodes} is in {oldPendingResults}:
425-
- Continue to the next {rootNode}.
426423
- If {rootNode} has no children Pending Incremental Data nodes:
427424
- Let {children} be the set of child Deferred Fragment nodes of {rootNode}.
428-
- Remove {rootNode} from {rootNodes}.
429425
- 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}.
431429

432430
GetInitialResult(data, errors, pendingResults):
433431

0 commit comments

Comments
 (0)