Discover how Java 21’s Virtual Threads get turbocharged with two third-preview features: StructuredTaskScope and ScopedValue. Christian Woerz walks through a live-coding session, starting from an empty Java app and iteratively building a fully concurrent web application that expertly combines Virtual Threads with these new APIs.
Along the way you’ll see why ScopedValues beat out ThreadLocals in most cases, learn how to create customized StructuredTaskScopes, and walk away with a solid, real-world understanding of how to squeeze every drop of performance and clarity from your concurrent code.
Watch on YouTube
Top comments (0)