TL;DR
Java 21’s virtual threads get even cooler when paired with the preview features StructuredTaskScope
and ScopedValue
. In a live‐coding session, Christian Woerz kicks off with an empty Java app and iteratively transforms it into a fully concurrent web application, showing you how to wrangle virtual threads, why ScopedValue
often beats ThreadLocal
, and how to craft your own StructuredTaskScope
for custom needs.
By the end, you’ll walk away with a practical, hands-on understanding of these third-preview gems and know exactly how to leverage them in real-world Java projects.
Watch on YouTube
Top comments (0)