Skip to content

Commit 6aa7107

Browse files
committed
Simplify
1 parent 8f1ce04 commit 6aa7107

File tree

1 file changed

+23
-26
lines changed

1 file changed

+23
-26
lines changed

spec/Section 6 -- Execution.md

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,13 @@ variableValues):
160160
- Let {defers} be {initialDefers}.
161161
- Let {pendingDefer} be an unordered map containing {id}, {defers}.
162162
- Add {pendingDefer} to {remainingDefers}.
163-
- If {initialStreams} is not an empty list:
164-
- For each entry {streamDetails} in {initialStreams}:
165-
- Let {id} be {nextId} and increment {nextId} by one.
166-
- Let {path} be the value for the key {path} in {streamDetails}.
167-
- Let {pendingPayload} be an unordered map containing {id}, {path}.
168-
- Add {pendingPayload} to {pending}.
169-
- Let {pendingStream} be an unordered map containing {id}, {streamDetails}.
170-
- Add {pendingStream} to {remainingStreams}.
163+
- For each entry {streamDetails} in {initialStreams}:
164+
- Let {id} be {nextId} and increment {nextId} by one.
165+
- Let {path} be the value for the key {path} in {streamDetails}.
166+
- Let {pendingPayload} be an unordered map containing {id}, {path}.
167+
- Add {pendingPayload} to {pending}.
168+
- Let {pendingStream} be an unordered map containing {id}, {streamDetails}.
169+
- Add {pendingStream} to {remainingStreams}.
171170
- Let {initialResponse} be an unordered map containing {data}, {errors},
172171
{pending}, and the value {true} for key {hasNext}.
173172
- Yield an event containing {initialResponse}.
@@ -242,15 +241,14 @@ variableValues):
242241
- Let {defers} be {batchDefers}.
243242
- Let {pendingDefer} be an unordered map containing {id}, {defers}.
244243
- Add {pendingDefer} to {remainingDefers}.
245-
- If {batchStreams} is not an empty list:
246-
- For each entry {streamDetails} in {batchStreams}:
247-
- Let {id} be {nextId} and increment {nextId} by one.
248-
- Let {path} be the value for the key {path} in {streamDetails}.
249-
- Let {pendingPayload} be an unordered map containing {id}, {path}.
250-
- Add {pendingPayload} to {pending}.
251-
- Let {pendingStream} be an unordered map containing {id},
252-
{streamDetails}.
253-
- Add {pendingStream} to {remainingStreams}.
244+
- For each entry {streamDetails} in {batchStreams}:
245+
- Let {id} be {nextId} and increment {nextId} by one.
246+
- Let {path} be the value for the key {path} in {streamDetails}.
247+
- Let {pendingPayload} be an unordered map containing {id}, {path}.
248+
- Add {pendingPayload} to {pending}.
249+
- Let {pendingStream} be an unordered map containing {id},
250+
{streamDetails}.
251+
- Add {pendingStream} to {remainingStreams}.
254252
- Add to {completed} an unordered map containing key {id} with value
255253
{thisId}.
256254
- Optionally, {FlushStream()}.
@@ -289,15 +287,14 @@ variableValues):
289287
- Let {defers} be {childDefers}.
290288
- Let {pendingDefer} be an unordered map containing {id}, {defers}.
291289
- Add {pendingDefer} to {remainingDefers}.
292-
- If {childStreams} is not an empty list:
293-
- For each entry {streamDetails} in {childStreams}:
294-
- Let {id} be {nextId} and increment {nextId} by one.
295-
- Let {path} be the value for the key {path} in {streamDetails}.
296-
- Let {pendingPayload} be an unordered map containing {id}, {path}.
297-
- Add {pendingPayload} to {pending}.
298-
- Let {pendingStream} be an unordered map containing {id},
299-
{streamDetails}.
300-
- Add {pendingStream} to {remainingStreams}.
290+
- For each entry {streamDetails} in {childStreams}:
291+
- Let {id} be {nextId} and increment {nextId} by one.
292+
- Let {path} be the value for the key {path} in {streamDetails}.
293+
- Let {pendingPayload} be an unordered map containing {id}, {path}.
294+
- Add {pendingPayload} to {pending}.
295+
- Let {pendingStream} be an unordered map containing {id},
296+
{streamDetails}.
297+
- Add {pendingStream} to {remainingStreams}.
301298
- Add to {completed} an unordered map containing key {id} with value
302299
{thisId}.
303300
- Optionally, {FlushStream()}.

0 commit comments

Comments
 (0)