Scale Forem

Scale YouTube
Scale YouTube

Posted on

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

Virtual threads are awesome in Java 21, but to really crank up concurrency you’ll want StructuredTaskScope and ScopedValue (both in third preview!). In a live-coding session Christian Woerz takes us from a bare-bones Java app to a fully concurrent web service, mixing virtual threads with custom task scopes and scoped values along the way.

You’ll learn why scoped values beat thread-locals for passing data, how to craft your own StructuredTaskScopes, and get hands-on tips for real-world use. By the end, you’ll have a solid grasp of these fresh features and know exactly how to plug them into your next project.

Watch on YouTube

Top comments (0)