StructuredTaskScope And ScopedValue: Get The Most Out of Virtual Threads
This talk by Christian Woerz dives into Java 21’s virtual threads and how to supercharge them using two preview features: StructuredTaskScope and ScopedValue. You’ll jump into a live coding session that starts with a bare-bones Java app and evolves it into a fully concurrent web service, all powered by virtual threads.
Along the way, you’ll learn why ScopedValues can often replace ThreadLocals, how to craft your own custom StructuredTaskScopes, and gain a solid grasp of these features so you can confidently apply them in real-world projects.
Watch on YouTube
Top comments (0)