© Ron Veen and David Vlijmincx 2024
R. Veen, D. VlijmincxVirtual Threads, Structured Concurrency, and Scoped ValuesApress Pocket Guideshttps://doi.org/10.1007/979-8-8688-0500-4_2

2. Structured Concurrency

Ron Veen1   and David Vlijmincx2
(1)
ENSCHEDE, The Netherlands
(2)
HELMOND, The Netherlands
 
Structured concurrency was the second delivery from Project Loom, right after the virtual threads we introduced in Chapter 1. In this chapter, we will
  • Look at what structured concurrency is

  • Look at an example using structured concurrency

  • Dive into the underlying API with StructuredTaskScope

  • Create a custom StructuredTaskScope implementation

  • Look at some alternatives to structured concurrency

What Is Structured Concurrency?

Structured concurrency lets you reason about ...

Get Virtual Threads, Structured Concurrency, and Scoped Values: Explore Java’s New Threading Model now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.