StructuredTaskScope And ScopedValue - TL;DR
Christian Woerz dives into Java 21’s hot new virtual threads and shows how to level them up with two third-preview features: StructuredTaskScope and ScopedValue. You’ll learn why ScopedValues often beat ThreadLocals and how to build custom StructuredTaskScopes that fit your exact needs.
Through a live-coding session, you start from scratch and end up with a fully concurrent web app powered by virtual threads, StructuredTaskScope and ScopedValue. By the end, you’ll have a real-world grasp of how these features work together—and why they make your code cleaner, safer and more scalable.
Watch on YouTube
Top comments (0)