java.lang.ScopedValue

GPTKB entity

Statements (20)
Predicate Object
gptkbp:instanceOf gptkb:class
gptkbp:documentation https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/ScopedValue.html
https://www.w3.org/2000/01/rdf-schema#label java.lang.ScopedValue
gptkbp:immutable true
gptkbp:introducedIn gptkb:Java_21
gptkbp:isFinal true
gptkbp:openToPublic true
gptkbp:purpose provides a way to share immutable values within and across threads in a controlled scope
gptkbp:replacedBy ThreadLocal (in some use cases)
gptkbp:staticMethod run
call
get
where
isBound
newInstance
gptkbp:threadSafe true
gptkbp:type java.lang
gptkbp:usedFor passing values to code executed in a specific scope
gptkbp:bfsParent gptkb:Scoped_Values_(incubator)
gptkbp:bfsLayer 6