Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Make use of structured concurrency
Description fields
Basics
Logistics
Basics
Logistics
Description
Structured concurrency is currently (Java 23) in preview, but it looks like it would be a good way of replacing the stages that make use of fork-join patterns alongside executors and Futures with a more natural construction based around the virtual threads introduced in Java 21.
It seems likely that one version or another of structured concurrency might make it into the non-preview API in Java 25. It would be possible, then, to adopt this technique in a version of the MDA built on a Java platform that was baselined against that LTS if and when we move forward to that release.
Structured concurrency is currently (Java 23) in preview, but it looks like it would be a good way of replacing the stages that make use of fork-join patterns alongside executors and
Future
s with a more natural construction based around the virtual threads introduced in Java 21.It seems likely that one version or another of structured concurrency might make it into the non-preview API in Java 25. It would be possible, then, to adopt this technique in a version of the MDA built on a Java platform that was baselined against that LTS if and when we move forward to that release.