Scale Forem

Scale YouTube
Scale YouTube

Posted on

Devoxx: StructuredTaskScope And ScopedValue - Get The Most Out of Virtual Threads by Christian Woerz

Get the Most Out of Virtual Threads by Christian Woerz

This session dives into two shiny preview features in Java 21—StructuredTaskScope and ScopedValue—that turn virtual threads from “nice to have” into “can’t live without.” Through a live-coding journey you’ll start with a blank Java app and end up with a fully concurrent web service, all while seeing why ScopedValues beat old-school ThreadLocals and how to craft custom TaskScopes for your own use cases.

By the end, you’ll walk away with a hands-on grasp of how these features slot into real-world code, supercharging your multithreading chops and making concurrent programming feel a lot less scary.

Watch on YouTube

Top comments (0)