eventsourcingdb 0.12.5 → 0.12.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -170,7 +170,7 @@ for await (const event of client.readEvents('/books/42', {
|
|
|
170
170
|
|
|
171
171
|
#### Aborting Reading
|
|
172
172
|
|
|
173
|
-
If you need to abort reading use `break` or `return` within the `await
|
|
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.
|
|
174
174
|
|
|
175
175
|
To abort reading independently of that, hand over an abort signal as third argument when calling `readEvents`, and abort the appropriate `AbortController`:
|
|
176
176
|
|
|
@@ -205,7 +205,7 @@ for await (const row of client.runEventQlQuery(`
|
|
|
205
205
|
|
|
206
206
|
#### Aborting a Query
|
|
207
207
|
|
|
208
|
-
If you need to abort a query use `break` or `return` within the `await
|
|
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.
|
|
209
209
|
|
|
210
210
|
To abort the query independently of that, hand over an abort signal as second argument when calling `runEventQlQuery`, and abort the appropriate AbortController:
|
|
211
211
|
|
|
@@ -220,7 +220,7 @@ for await (const row of client.runEventQlQuery(`
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
// Somewhere else, abort the controller, which will cause
|
|
223
|
-
//
|
|
223
|
+
// the query to end.
|
|
224
224
|
controller.abort();
|
|
225
225
|
```
|
|
226
226
|
|
|
@@ -290,7 +290,7 @@ for await (const event of client.observeEvents('/books/42', {
|
|
|
290
290
|
|
|
291
291
|
#### Aborting Observing
|
|
292
292
|
|
|
293
|
-
If you need to abort observing use `break` or `return` within the `await
|
|
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.
|
|
294
294
|
|
|
295
295
|
To abort observing independently of that, hand over an abort signal as third argument when calling `observeEvents`, and abort the appropriate `AbortController`:
|
|
296
296
|
|
|
@@ -349,7 +349,7 @@ for await (const subject of client.readSubjects('/books')) {
|
|
|
349
349
|
|
|
350
350
|
#### Aborting Listing
|
|
351
351
|
|
|
352
|
-
If you need to abort listing use `break` or `return` within the `await
|
|
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.
|
|
353
353
|
|
|
354
354
|
To abort listing independently of that, hand over an abort signal as second argument when calling `readSubjects`, and abort the appropriate `AbortController`:
|
|
355
355
|
|
|
@@ -379,7 +379,7 @@ for await (const eventType of client.readEventTypes()) {
|
|
|
379
379
|
|
|
380
380
|
#### Aborting Listing
|
|
381
381
|
|
|
382
|
-
If you need to abort listing use `break` or `return` within the `await
|
|
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.
|
|
383
383
|
|
|
384
384
|
To abort listing independently of that, hand over an abort signal as argument when calling `readEventTypes`, and abort the appropriate `AbortController`:
|
|
385
385
|
|