Class StructuredConcurrencySecondPreviewNotes
java.lang.Object
net.jrodolfo.java_evolution.java22.structured_concurrency.StructuredConcurrencySecondPreviewNotes
Explains structured concurrency as a Java 22 second preview feature.
Structured concurrency keeps related concurrent subtasks inside a clear parent scope. That makes cancellation, joining, failure handling, and observability easier to reason about than detached background tasks.
Java 22 kept the API in preview, so this repository documents the concept without depending on a preview API shape.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNames important behavior that structure makes clearer.nextStep()Points learners to the later Java 25 preview module.Explains the practical problem.Describes the Java 22 maturity level.Explains the structured unit of work.
-
Constructor Details
-
StructuredConcurrencySecondPreviewNotes
public StructuredConcurrencySecondPreviewNotes()
-
-
Method Details
-
problemSolved
-
structuredUnitOfWork
Explains the structured unit of work.- Returns:
- a short explanation
-
coordinationBenefits
Names important behavior that structure makes clearer.- Returns:
- key behavior
-
nextStep
Points learners to the later Java 25 preview module.- Returns:
- a short next-step note
-
secondPreviewStatus
Describes the Java 22 maturity level.- Returns:
- a short status note
-