StructuredTaskScope And ScopedValue – A Quick Dive
Java 21’s virtual threads get supercharged with two third-preview gems: StructuredTaskScope and ScopedValue. Christian Woerz kicks off from a blank canvas and live-codes a fully concurrent web app, showing you how to ditch ThreadLocals in favor of ScopedValues and craft custom task scopes that actually make sense.
By the end you’ll know why ScopedValues rock, how to roll your own StructuredTaskScopes, and exactly how these features turn virtual threads into a productivity and performance dream. Ready to level-up your Java concurrency?
Watch on YouTube
Top comments (0)