Skip to content

Commit 52c4a67

Browse files
robrichardyaacovCR
authored andcommitted
address pr feedback
1 parent 1d2e7e4 commit 52c4a67

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

spec/Section 6 -- Execution.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -387,26 +387,30 @@ YieldSubsequentPayloads(initialResponse, subsequentPayloads):
387387
{incremental}.
388388
- Yield {initialResponse}.
389389
- While {subsequentPayloads} is not empty:
390-
- If a termination signal is received:
391-
- For each {record} in {subsequentPayloads}:
392-
- If {record} contains {iterator}:
393-
- Send a termination signal to {iterator}.
394-
- Return.
395-
- Wait for at least one record in {subsequentPayloads} to have a completed
396-
{dataExecution}.
397-
- Let {subsequentResponse} be an unordered map with an entry {incremental}
398-
initialized to an empty list.
399-
- Let {records} be the items in {subsequentPayloads} with a completed
400-
{dataExecution}.
390+
- If a termination signal is received:
391+
- For each {record} in {subsequentPayloads}:
392+
- If {record} contains {iterator}:
393+
- Send a termination signal to {iterator}.
394+
- Return.
395+
- Wait for at least one record in {subsequentPayloads} to have a completed
396+
{dataExecution}.
397+
- Let {subsequentResponse} be an unordered map with an entry {incremental}
398+
initialized to an empty list.
399+
- Let {records} be the items in {subsequentPayloads} with a completed
400+
{dataExecution}.
401401
- For each {record} in {records}:
402402
- Remove {record} from {subsequentPayloads}.
403403
- If {isCompletedIterator} on {record} is {true}:
404404
- Continue to the next record in {records}.
405405
- Let {payload} be the completed result returned by {dataExecution}.
406-
- Append {payload} to {incremental}.
406+
- Append {payload} to the {incremental} entry on {subsequentResponse}.
407407
- If {subsequentPayloads} is empty:
408-
- Add an entry to {response} named `hasNext` with the value {false}.
409-
- Yield {response}
408+
- Add an entry to {subsequentResponse} named `hasNext` with the value
409+
{false}.
410+
- Otherwise, if {subsequentPayloads} is not empty:
411+
- Add an entry to {subsequentResponse} named `hasNext` with the value
412+
{true}.
413+
- Yield {subsequentResponse}
410414

411415
## Executing Selection Sets
412416

0 commit comments

Comments
 (0)