Skip to content

Commit 565be26

Browse files
committed
Wording tweaks
1 parent 3b646e2 commit 565be26

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
@@ -139,9 +139,9 @@ ExecuteQuery(query, schema, variableValues, initialValue):
139139
- If {defers} is an empty map and {streams} is an empty list:
140140
- Return an unordered map containing {data} and {errors}.
141141
- Otherwise:
142-
- Let {responseStream} be a new event stream {responseStream}.
142+
- Let {responseStream} be a new event stream.
143143
- Call {IncrementalEventStream(responseStream, data, errors, defers, streams,
144-
variableValues)}.
144+
variableValues)} asynchronously.
145145
- Return {responseStream}.
146146

147147
IncrementalEventStream(responseStream, data, errors, initialDefers,
@@ -150,7 +150,6 @@ initialStreams, variableValues):
150150
- Let {nextId} be {0}.
151151
- Let {remainingDefers} be an empty set.
152152
- Let {remainingStreams} be an empty set.
153-
- Let {hasNext} be {true}.
154153
- Let {pending} be an empty list.
155154
- If {initialDefers} is not an empty object:
156155
- Let {id} be {nextId} and increment {nextId} by one.
@@ -171,13 +170,13 @@ initialStreams, variableValues):
171170
- Let {pendingStream} be an unordered map containing {id}, {streamDetails}.
172171
- Add {pendingStream} to {remainingStreams}.
173172
- Let {initialResponse} be an unordered map containing {data}, {errors},
174-
{pending}, and {hasNext}.
173+
{pending}, and the value {true} for key {hasNext}.
175174
- Yield to {responseStream} the value {initialResponse}.
176175
- Let {incremental} be an empty list.
177176
- Let {errors} be an empty list.
178177
- Let {pending} be an empty list.
179178
- Let {completed} be an empty list.
180-
- When you {FlushStream(hasNext)}:
179+
- Define the subprocedure {FlushStream(hasNext)} with the following actions:
181180
- If {hasNext} is not provided, initialize it to {true}.
182181
- Let {incrementalPayload} be an empty unordered map.
183182
- Add {hasNext} to {incrementalPayload}.

0 commit comments

Comments
 (0)