StructuredTaskScope And ScopedValue – Get the Most Out of Virtual Threads
Java 21’s virtual threads are awesome—but to really juice them you need two preview features: StructuredTaskScope and ScopedValue. Christian Woerz dives into these in his talk, showing how they unlock safer, cleaner concurrency.
Starting from a blank Java app, he live-codes a fully functioning concurrent web application, demonstrating why ScopedValues often beat ThreadLocals and how to craft custom StructuredTaskScopes. By the end, you’ll have a clear, practical grasp of these new tools in real-world scenarios.
Watch on YouTube
Top comments (0)