We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c86886c commit cb9cb44Copy full SHA for cb9cb44
Java-Versions/Java 26/src/Test1.java …va 26/src/StructuredConcurrencyDemo.javaJava-Versions/Java 26/src/Test1.java renamed to Java-Versions/Java 26/src/StructuredConcurrencyDemo.java
@@ -1,6 +1,6 @@
1
import java.util.concurrent.StructuredTaskScope;
2
3
-public class Test1 {
+public class StructuredConcurrencyDemo {
4
public static void main(String[] args) {
5
6
try (var scope = new StructuredTaskScope.ShutdownOnFailure()) {
@@ -28,6 +28,12 @@ static String fetchData(String name) throws InterruptedException {
28
/*
29
What changed: Previous vs New
30
31
+Java 26 note:
32
+StructuredTaskScope API changed from older ShutdownOnFailure style
33
+to the new open(...) + Joiner style.
34
+
35
36
37
Previous Java style:
38
- Usually we used ExecutorService + Future
39
- We manually submitted tasks
0 commit comments