This video demonstrates Project Loom structured concurrency features, which enables a main task to split into several concurrent sub-tasks that run concurrently to competion before the main task can complete. Project Loom supports structured concurrency by enhancing ExecutorService to support AutoCloseable and updating Executors to define new static factory methods that support usage in a structured manner. You'll need to install JDK 18 with Project Loom configured, which you can download from https://jdk.java.net/loom.
The Java code shown in this video is available in open-source form from my GitHub repository at https://github.com/douglascraigschmidt/LiveLessons/tree/master/Loom/ex2.
ApplyingStructuredConcurrency
0 Comments