Class StructuredConcurrencySecondPreviewNotes

java.lang.Object
net.jrodolfo.java_evolution.java22.StructuredConcurrencySecondPreviewNotes

public class StructuredConcurrencySecondPreviewNotes extends Object
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 Details

    • StructuredConcurrencySecondPreviewNotes

      public StructuredConcurrencySecondPreviewNotes()
  • Method Details

    • purpose

      public String purpose()
      Explains the practical goal.
      Returns:
      a short explanation
    • secondPreviewStatus

      public String secondPreviewStatus()
      Describes the Java 22 maturity level.
      Returns:
      a short status note