Class StructuredConcurrencyPreviewNotes

java.lang.Object
net.jrodolfo.java_evolution.java21.StructuredConcurrencyPreviewNotes

public class StructuredConcurrencyPreviewNotes extends Object
Explains structured concurrency as a Java 21 preview feature.

Concurrent subtasks are easier to understand when they have a clear parent scope. Structured concurrency groups related tasks so joining, cancellation, failure handling, and observability belong to one unit of work.

The Java 21 API was preview, so this repository documents the concept without depending on preview APIs.

  • Constructor Details

    • StructuredConcurrencyPreviewNotes

      public StructuredConcurrencyPreviewNotes()
  • Method Details

    • purpose

      public String purpose()
      Explains the central idea.
      Returns:
      a short explanation
    • previewStatus

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