Applying Java Structured Concurrency: Case Study ex2

preview_player
Показать описание
This video walks through the source code to case study ex2, which demonstrates how Java 19 structured concurrency features enable a main task to split into several concurrent sub-tasks that run concurrently to completion before the main task can complete. This video focuses on the Java 19 enhancements for ExecutorService (which supports AutoCloseable), as well as updates to the Java Executors utility class that defines new static factory methods (e.g., newVirtualThreadPerTaskExecutor()) that support usage in a structured manner.

Рекомендации по теме