# Uses of Class
jdk.incubator.concurrent.StructuredTaskScope

Packages that use StructuredTaskScope
Package
Description
jdk.incubator.concurrent
Defines non-final APIs for concurrent programming.

- ## Uses of StructuredTaskScope in jdk.incubator.concurrent

  Subclasses of StructuredTaskScope in jdk.incubator.concurrent
  Modifier and Type
  Class
  Description
  `static final class`
  `StructuredTaskScope.ShutdownOnFailure`
  A `StructuredTaskScope` that captures the exception of the first subtask to complete abnormally.
  `static final class`
  `StructuredTaskScope.ShutdownOnSuccess<T>`
  A `StructuredTaskScope` that captures the result of the first subtask to complete successfully.
  Methods in jdk.incubator.concurrent that return StructuredTaskScope
  Modifier and Type
  Method
  Description
  `StructuredTaskScope<T>`
  StructuredTaskScope.`join()`
  Wait for all threads to finish or the task scope to shut down.
  `StructuredTaskScope<T>`
  StructuredTaskScope.`joinUntil(Instant deadline)`
  Wait for all threads to finish or the task scope to shut down, up to the given deadline.