Scoped Values (Fourth Preview)

Andrew Haley aph at redhat.com
Thu Aug 22 16:55:55 UTC 2024


One change:

The fluent API that is described in the Javadoc is now the only API supported.
The previous "shorthand" form is gone, simplifying the API. The only way now
to invoke Java code with a bound ScopedValue is via the
ScopedValue.Carrier.call() and ScopedValue.Carrier.bind() methods. This results
in a small API surface, which I rather like.

The draft JEP is at
https://bugs.openjdk.org/browse/JDK-8338456

I pushed the source changes to the fibers branch.

Alan (Bateman), will you please put the Javadoc somewhere and send me a link,
so I can link it to the PR? Thanks.

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the loom-dev mailing list