Scale Forem

Scale YouTube
Scale YouTube

Posted on

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

Get ready to dive into Java 21’s virtual threads with two preview gems: StructuredTaskScope and ScopedValue. In a live-coding session, Christian Woerz starts from a blank slate and gradually builds a fully concurrent web app, showing why ScopedValues outshine ThreadLocals and how you can tailor your own task scopes.

By the end, you’ll have a solid grasp of how these features work, how they mesh with virtual threads in real-world scenarios, and why they’re a total game-changer for concurrent Java development.

Watch on YouTube

Top comments (0)