Category: Language-Processes
Superclass: LookupKey
I represent a proxy for a thread-local variable defined for a process. Requesting the value will return the thread-local setting for the current process.

Method category index

accessing (class)
accessing (instance)

accessing (class)

key: anObject
Return a new ProcessVariable with the given key. Not that the key need not be a symbol or string, for example you could use an array #(#{class name} 'name'). Setting the variable's value will automatically create it in the current process, while removal must be done by hand through the ProcessEnvironment singleton object.

new

Return a new ProcessVariable with a new anonymous but unique key. It is suggested to use a descriptive name instead to ease debugging. Setting the variable's value will automatically create it in the current process, while removal must be done by hand through the ProcessEnvironment singleton object.

top


accessing (instance)

environment
Return the environment in which this ProcessVariable lives. This is the singleton instance of ProcessEnvironment for all variables.

use: anObject during: aBlock

Set the value of this variable to anObject during the execution of aBlock, then restore it.

value

Return the value of this variable in the current process.

value: anObject

Set the value of the current process's copy of the variable to be anObject.

valueIfAbsent: aBlock

Return the value of this variable in the current process.

top