New candidate JEP: 481: Scoped Values (Third Preview)
Mark Reinhold
mark.reinhold at oracle.com
Tue May 14 18:51:33 UTC 2024
https://openjdk.org/jeps/481
Summary: Introduce scoped values, which enable a method to share
immutable data both with its callees within a thread, and with child
threads. Scoped values are easier to reason about than thread-local
variables. They also have lower space and time costs, especially
when used together with virtual threads (JEPÂ 444) and structured
concurrency (JEPÂ 480). This is a preview API.
- Mark
More information about the jdk-dev
mailing list