Skip to content

Commit 4e906c8

Browse files
committed
fix: Fix documentation.
1 parent 3bdbea9 commit 4e906c8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ for await (const event of client.readEvents('/books/42', {
170170

171171
#### Aborting Reading
172172

173-
If you need to abort reading use `break` or `return` within the `await for` loop. However, this only works if there is currently an iteration going on.
173+
If you need to abort reading use `break` or `return` within the `for await` loop. However, this only works if there is currently an iteration going on.
174174

175175
To abort reading independently of that, hand over an abort signal as third argument when calling `readEvents`, and abort the appropriate `AbortController`:
176176

@@ -205,7 +205,7 @@ for await (const row of client.runEventQlQuery(`
205205

206206
#### Aborting a Query
207207

208-
If you need to abort a query use `break` or `return` within the `await for` loop. However, this only works if there is currently an iteration going on.
208+
If you need to abort a query use `break` or `return` within the `for await` loop. However, this only works if there is currently an iteration going on.
209209

210210
To abort the query independently of that, hand over an abort signal as second argument when calling `runEventQlQuery`, and abort the appropriate AbortController:
211211

@@ -290,7 +290,7 @@ for await (const event of client.observeEvents('/books/42', {
290290

291291
#### Aborting Observing
292292

293-
If you need to abort observing use `break` or `return` within the `await for` loop. However, this only works if there is currently an iteration going on.
293+
If you need to abort observing use `break` or `return` within the `for await` loop. However, this only works if there is currently an iteration going on.
294294

295295
To abort observing independently of that, hand over an abort signal as third argument when calling `observeEvents`, and abort the appropriate `AbortController`:
296296

@@ -349,7 +349,7 @@ for await (const subject of client.readSubjects('/books')) {
349349

350350
#### Aborting Listing
351351

352-
If you need to abort listing use `break` or `return` within the `await for` loop. However, this only works if there is currently an iteration going on.
352+
If you need to abort listing use `break` or `return` within the `for await` loop. However, this only works if there is currently an iteration going on.
353353

354354
To abort listing independently of that, hand over an abort signal as second argument when calling `readSubjects`, and abort the appropriate `AbortController`:
355355

@@ -379,7 +379,7 @@ for await (const eventType of client.readEventTypes()) {
379379

380380
#### Aborting Listing
381381

382-
If you need to abort listing use `break` or `return` within the `await for` loop. However, this only works if there is currently an iteration going on.
382+
If you need to abort listing use `break` or `return` within the `for await` loop. However, this only works if there is currently an iteration going on.
383383

384384
To abort listing independently of that, hand over an abort signal as argument when calling `readEventTypes`, and abort the appropriate `AbortController`:
385385

0 commit comments

Comments
 (0)