In his talk, Christian Woerz dives into Java 21’s virtual threads and the two third-preview gems that make them shine: StructuredTaskScope and ScopedValue. Starting from a blank slate, he live-codes a fully concurrent web app, showing how to swap ThreadLocals for ScopedValues, orchestrate tasks with StructuredTaskScopes, and even roll your own scopes.
By the end, you’ll have a hands-on grasp of why these features matter, how they fit into real-world scenarios, and how to write cleaner, more powerful concurrent Java code.
Watch on YouTube
Top comments (0)