Scala, Concurrency, API, Project Loom, Java.
not the best idea. While possible quite easily from Java and Scala, it’s too easy to run into deadlock, race conditions, or heisenbugs. Another approach is the new StructuredTaskScope (described in more detail below). Quite obviously, this API is tailored for Java. Moreover, at times it's pretty