[javaone 2026] Developing an Asynchronous Application with Virtual Threads and Structured Concurrency | Down Home Country Coding With Scott Selikoff and Jeanne Boyarsky (opens in new tab)
Speakers: Jose Paumarrd & Ana-Maria Mihalceanu See the live blog table of contents Structured concurrency pattern. Note tasks end by autoclosable block complete try (var scope - StructuredTaskScope.open()) { var subtask = scope.fork(lambda) scope.join() var result = subtask.get(); } Scopes A scope can spawn other scope Closing the parent scope closes the child scopes Lab https://github.com/JosePaumard/2026_JavaOne-Loom-lab/blob/Step-00_Initial-application/JavaOne-Loom-Lab.md
Read the original article