Skip to content

Commit 4b6554e

Browse files
committed
address pr feedback
1 parent 1ad7e9c commit 4b6554e

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
@@ -388,26 +388,30 @@ YieldSubsequentPayloads(initialResponse, subsequentPayloads):
388388
{incremental}.
389389
- Yield {initialResponse}.
390390
- While {subsequentPayloads} is not empty:
391-
- If a termination signal is received:
392-
- For each {record} in {subsequentPayloads}:
393-
- If {record} contains {iterator}:
394-
- Send a termination signal to {iterator}.
395-
- Return.
396-
- Wait for at least one record in {subsequentPayloads} to have a completed
397-
{dataExecution}.
398-
- Let {subsequentResponse} be an unordered map with an entry {incremental}
399-
initialized to an empty list.
400-
- Let {records} be the items in {subsequentPayloads} with a completed
401-
{dataExecution}.
391+
- If a termination signal is received:
392+
- For each {record} in {subsequentPayloads}:
393+
- If {record} contains {iterator}:
394+
- Send a termination signal to {iterator}.
395+
- Return.
396+
- Wait for at least one record in {subsequentPayloads} to have a completed
397+
{dataExecution}.
398+
- Let {subsequentResponse} be an unordered map with an entry {incremental}
399+
initialized to an empty list.
400+
- Let {records} be the items in {subsequentPayloads} with a completed
401+
{dataExecution}.
402402
- For each {record} in {records}:
403403
- Remove {record} from {subsequentPayloads}.
404404
- If {isCompletedIterator} on {record} is {true}:
405405
- Continue to the next record in {records}.
406406
- Let {payload} be the completed result returned by {dataExecution}.
407-
- Append {payload} to {incremental}.
407+
- Append {payload} to the {incremental} entry on {subsequentResponse}.
408408
- If {subsequentPayloads} is empty:
409-
- Add an entry to {response} named `hasNext` with the value {false}.
410-
- Yield {response}
409+
- Add an entry to {subsequentResponse} named `hasNext` with the value
410+
{false}.
411+
- Otherwise, if {subsequentPayloads} is not empty:
412+
- Add an entry to {subsequentResponse} named `hasNext` with the value
413+
{true}.
414+
- Yield {subsequentResponse}
411415

412416
## Executing Selection Sets
413417

0 commit comments

Comments
 (0)