StructuredTaskScope And ScopedValue – Get The Most Out of Virtual Threads
Java 21’s virtual threads are awesome, but pairing them with the new StructuredTaskScope and ScopedValue (both in Preview 3) really cranks up the power. In a live-coding session starting from scratch, you’ll see how to build a concurrent web app step by step—learning why ScopedValues beat ThreadLocals and how to roll your own StructuredTaskScopes for custom needs.
By the end, you’ll have a solid grasp of both features and know exactly how to plug them into real-world Java apps for cleaner, more efficient concurrency.
Watch on YouTube
Top comments (0)