# Preview API

Show preview API for:

- 505: Structured Concurrency (Fifth Preview)
- Toggle all

## Contents

- Interfaces
- Enum Classes
- Exception Classes

- Interfaces
  Interface
  Preview Feature
  Description
  java.util.concurrent.StructuredTaskScopePREVIEW
  Structured Concurrency
  An API for structured concurrency.
  java.util.concurrent.StructuredTaskScope.ConfigurationPREVIEW
  Structured Concurrency
  Represents the configuration for a `StructuredTaskScope`.
  java.util.concurrent.StructuredTaskScope.JoinerPREVIEW
  Structured Concurrency
  An object used with a `StructuredTaskScope`PREVIEW to handle subtask completion and produce the result for the scope owner waiting in the `join`PREVIEW method for subtasks to complete.
  java.util.concurrent.StructuredTaskScope.SubtaskPREVIEW
  Structured Concurrency
  Represents a subtask forked with `StructuredTaskScope.fork(Callable)`PREVIEW or `StructuredTaskScope.fork(Runnable)`PREVIEW.

- Enum Classes
  Enum Class
  Preview Feature
  Description
  java.util.concurrent.StructuredTaskScope.Subtask.StatePREVIEW
  Structured Concurrency
  Represents the state of a subtask.

- Exception Classes
  Exception Class
  Preview Feature
  Description
  java.util.concurrent.StructuredTaskScope.FailedExceptionPREVIEW
  Structured Concurrency
  Exception thrown by `StructuredTaskScope.join()`PREVIEW when the outcome is an exception rather than a result.
  java.util.concurrent.StructuredTaskScope.TimeoutExceptionPREVIEW
  Structured Concurrency
  Exception thrown by `StructuredTaskScope.join()`PREVIEW if the scope was created with a timeout and the timeout expired before or while waiting in `join`.