Scale Forem

Scale YouTube
Scale YouTube

Posted on

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

Java 21’s virtual threads are awesome, but to really tap into their power you’ll want to pair them with StructuredTaskScope and ScopedValue—both currently in their third preview phase. In a live coding session, you’ll watch a blank Java app evolve into a fully concurrent web service, using virtual threads alongside these two features.

Along the way you’ll see why ScopedValues make ThreadLocals feel ancient, learn to craft your own StructuredTaskScopes, and walk away with the know-how to drop these shiny new tools into real-world projects.

Watch on YouTube

Top comments (0)