Skip to content

Commit d5dad37

Browse files
committed
fix: update structured concurrency example to Java 26 Joiner API
Signed-off-by: https://github.com/Someshdiwan <someshdiwan369@gmail.com>
1 parent cb9cb44 commit d5dad37

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Java-Versions/Java 26/src/StructuredConcurrencyDemo.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ static String fetchData(String name) throws InterruptedException {
3232
StructuredTaskScope API changed from older ShutdownOnFailure style
3333
to the new open(...) + Joiner style.
3434
35-
36-
3735
Previous Java style:
3836
- Usually we used ExecutorService + Future
3937
- We manually submitted tasks

0 commit comments

Comments
 (0)