Scale Forem

Scale YouTube
Scale YouTube

Posted on

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

StructuredTaskScope And ScopedValue – Get The Most Out of Virtual Threads

Christian Woerz dives into Java 21’s shiny new virtual threads and shows why using the preview features StructuredTaskScope and ScopedValue is a game-changer. In a live-coding session you’ll watch an empty Java app evolve into a fully concurrent web service, learning how to swap out ThreadLocals for ScopedValues and craft custom task scopes that fit your needs.

By the end, you’ll have a solid grasp of how these features work under the hood and how to apply them in real-world projects to write cleaner, more efficient multithreaded code.

Watch on YouTube

Top comments (0)