StructuredTaskScope And ScopedValue – Get The Most Out of Virtual Threads
Java 21 finally brings us virtual threads, but the real magic happens when you pair them with the two preview features StructuredTaskScope and ScopedValue. In this live-coding session, Christian Woerz starts from a blank Java app and iteratively builds a fully concurrent web application powered by virtual threads, showing you how to replace ThreadLocals with ScopedValues and craft your own task scopes.
By the end, you’ll have a solid, real-world grasp of these features—what they do, why they’re better, and exactly how to apply them in your next Java project. No slides, just pure code and practical tips!
Watch on YouTube
Top comments (0)