Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 191b0dc

Browse files
authored
Update README.md
1 parent fd27d0c commit 191b0dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ CompletableFuture<Status<Boolean>> future1 = executor.execute(callable1);
440440
CompletableFuture<Status<Boolean>> future2 = executor.execute(callable2);
441441
CompletableFuture<Status<Boolean>> future3 = executor.execute(callable3);
442442
443-
CompletableFuture combinedFuture = CompletableFuture.allOf(future1, future2, future3);
444-
combinedFuture.get();
443+
CompletableFuture.allOf(future1, future2, future3).join();
444+
executor.getThreadExecutorService().shutdown();
445445
```
446446
447447
In both of these examples, the `AsyncCallExecutor` takes care of instantiating and using a simple, default

0 commit comments

Comments
 (0)