Scala, Concurrency, API, Project Loom, Java.
Java 19 brought a preview of virtual threads and an API for structural concurrency. Java 20 extends this with ScopedValues, a much-improved version of ThreadLocal s. When writing concurrent code in Java, the first option is to work directly with threads (virtual or not). However, this is usually