A conference talk covering Java 25 improvements to virtual threads, structured concurrency, and scoped values. Key topics include the fix for the synchronized pinning issue (resolved in Java 24), the redesigned StructuredTaskScope API in Java 25 with the new Joiner interface, and scoped values as a thread-safe alternative to ThreadLocal when using virtual threads across multiple child threads. Practical demos show building a Spring Boot endpoint that runs concurrent blocking calls using StructuredTaskScope, implementing a custom Joiner for flexible subtask result handling, and replacing ThreadLocal with ScopedValue to propagate context across forked virtual threads.
•43m watch time
Sort: