Skip to content

Commit f633f88

Browse files
committed
Added typo fixes to 'batching' document in versioned_docs file.
1 parent d3a7a42 commit f633f88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

versioned_docs/version-v19/batching.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ DataFetcher<?> dataFetcherThatCallsTheDataLoader = new DataFetcher<Object>() {
273273
```
274274

275275
In the example above, the call to `characterDataLoader.load(argId)` can happen some time in the future on another thread. The graphql-java
276-
engine has no way of knowing when it's good time to dispatch outstanding `DataLoader` calls and hence the data loader call might never complete
276+
engine has no way of knowing when it's a good time to dispatch outstanding `DataLoader` calls and hence the data loader call might never complete
277277
as expected and no results will be returned.
278278

279279
Remember a data loader call is just a promise to actually get a value later when it's an optimal time for all outstanding calls to be batched
@@ -309,7 +309,7 @@ DataFetcher<?> dataFetcherThatCallsTheDataLoader = new DataFetcher<Object>() {
309309
Notice above the `characterDataLoader.load(argId)` returns immediately. This will enqueue the call for data until a later time when all
310310
the graphql fields are dispatched.
311311

312-
Then later when the `DataLoader` is dispatched, it's `BatchLoader` function is called. This code can be asynchronous so that if you have multiple batch loader
312+
Then later when the `DataLoader` is dispatched, its `BatchLoader` function is called. This code can be asynchronous so that if you have multiple batch loader
313313
functions they all can run at once. In the code above `CompletableFuture.supplyAsync(() -> getTheseCharacters(keys));` will run the ``getTheseCharacters``
314314
method in another thread.
315315

0 commit comments

Comments
 (0)