Skip to content

Commit f2aec2a

Browse files
committed
reuse GetIncrementalResult() for the error case
1 parent 4bb4fde commit f2aec2a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

spec/Section 6 -- Execution.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,7 @@ YieldIncrementalResults(data, errors, incrementalDataRecords):
373373
- Append {GetCompletedEntry(parent, errors)} to {completed}.
374374
- Remove {node} and all of its descendant nodes from {graph}, except for
375375
any descendant Incremental Data Record nodes with other parents.
376-
- Let {hasNext} be {false} if {graph} is empty; otherwise, {true}.
377-
- Yield an unordered map containing {completed} and {hasNext}.
376+
- Yield the result of {GetIncrementalResult(graph, completed)}.
378377
- Continue to the next completed Pending Incremental Data node.
379378
- Replace {node} in {graph} with a new node corresponding to the Completed
380379
Incremental Data for {result}.
@@ -447,15 +446,15 @@ GetPendingEntry(pendingResults):
447446
- Append {pendingEntry} to {pending}.
448447
- Return {pending}.
449448

450-
GetIncrementalResult(graph, incremental, completed, pending):
449+
GetIncrementalResult(graph, completed, incremental, pending):
451450

452451
- Let {hasNext} be {false} if {graph} is empty, otherwise, {true}.
453452
- Let {incrementalResult} be an unordered map containing {hasNext}.
454-
- If {incremental} is not empty:
453+
- If {incremental} is provided and not empty:
455454
- Set the corresponding entry on {incrementalResult} to {incremental}.
456455
- If {completed} is not empty:
457456
- Set the corresponding entry on {incrementalResult} to {completed}.
458-
- If {pending} is not empty:
457+
- If {pending} is provided and not empty:
459458
- Set the corresponding entry on {incrementalResult} to {pending}.
460459
- Return {incrementalResult}.
461460

0 commit comments

Comments
 (0)