As of November 27, 2026, JEP 543 had been integrated into JDK 28, making java.util.concurrent.StructuredTaskScope a permanent API after seven preview rounds. The finalization removed preview annotations but changed no method signatures. Teams using the JDK 27 preview can recompile their structured concurrency code unchanged on a JDK 28 early-access build that includes JEP 543. General availability was scheduled for March 2027.
What a task scope guarantees
StructuredTaskScope treats related tasks running on separate threads as one unit of work. Consider a request handler that needs both a user record and an order. With ExecutorService and Future, the handler can return while a task is still running, and a failure may not surface until the handler calls Future.get() on that task.
With the default StructuredTaskScope.open() policy, the handler calls fork() for each lookup, starting a virtual thread for each by default. A single join() waits for both lookups to succeed. If either fails, the scope cancels the remaining work and join() throws ExecutionException. Closing the scope at the end of a try-with-resources block cancels any unfinished tasks and waits for their threads to terminate before the handler leaves the block.
Only the thread that opened the scope can call fork() or join(), and it can read results through Subtask.get() only after join() returns. Subtasks inherit ScopedValue bindings and appear beneath their parent thread in JSON thread dumps.
One detail is deliberately unspecified: if several subtasks fail concurrently, callers cannot rely on which failure join() reports. After Viktor Klang raised the question during code review, Oracle’s JEP owner Alan Bateman revised the Javadoc to guarantee only that the reported exception comes from a failed subtask.
What changes for developers
For teams moving from JDK 27, the change is in the build rather than the code. Structured concurrency no longer requires --enable-preview in compiler commands, test runners or launch scripts. Library and framework maintainers can use the permanent API without requiring their users to enable preview features for it.
Teams moving from JDK 26 also need to account for changes made in the seventh preview. The built-in throwing joiners use ExecutionException rather than the preview-only FailedException. Custom Joiner implementations take a third type parameter, R_X, that specifies the exception join() can throw directly. For example, a joiner that needs two successful replica reads can cancel the rest once it has two results, or throw an application-defined checked exception if it falls short.
JDK 26 users also need to revisit timeout handling. StructuredTaskScope.TimeoutException was removed; a timeout is now identified by a CancelledByTimeoutException cause. The abstract timeout() method replaced the onTimeout() callback, and Joiner.awaitAll() is no longer available.
Structured concurrency first appeared as an incubating API in JDK 19 and 20, then went through a preview in every release from JDK 21 through JDK 27, the longest preview cycle of any Project Loom feature. For teams still on JDK 25, the velo/structured-concurrency project has backported the JEP 543 API and provides a guide to switching to the native JDK classes after an upgrade.

