Class StructuredConcurrencySeventhPreviewExamples
java.lang.Object
net.jrodolfo.java_evolution.java27.structured_concurrency.StructuredConcurrencySeventhPreviewExamples
Demonstrates the seventh preview of Structured Concurrency from JEP 533.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboundary()Explains the scoped task-lifetime boundary.Returns source using fork, join, typed failure propagation, and a structured scope.Compiles and runs deterministic successful and failing structured scopes.
-
Constructor Details
-
StructuredConcurrencySeventhPreviewExamples
public StructuredConcurrencySeventhPreviewExamples()
-
-
Method Details
-
run
Compiles and runs deterministic successful and failing structured scopes.- Throws:
IOExceptionInterruptedException
-
probeSource
Returns source using fork, join, typed failure propagation, and a structured scope. -
boundary
Explains the scoped task-lifetime boundary.
-