13 Scoped Values

A scoped value is a value that may be safely and efficiently shared to methods without using method parameters.

See the ScopedValue class in the Java SE API specification for more information.

Note:

This is a preview feature. A preview feature is a feature whose design, specification, and implementation are complete, but is not permanent. A preview feature may exist in a different form or not at all in future Java SE releases. To compile and run code that contains preview features, you must specify additional command-line options. See Preview Language and VM Features.

For background information about scoped values, see JEP 464.