Category: Language-Data types
Superclass: ValueHolder
I store my value in a variable, and know whether I have been initialized or not. If you ask for my value and I have not been initialized, I suspend the process until a value has been assigned.

Method category index

creating instances (class)
accessing (instance)
initializing (instance)
printing (instance)
still unclassified (instance)

creating instances (class)

for: aBlock
Invoke aBlock at an indeterminate time in an indeterminate process before answering its value from #value sent to my result.

null

This method should not be called for instances of this class.

top


accessing (instance)

hasError
Answer whether calling #value will raise an exception.

hasValue

Answer whether we already have a value (or calling #value will raise an error).

value

Get the value of the receiver.

value: anObject

Set the value of the receiver.

top


initializing (instance)

initialize
Private - set the initial state of the receiver

top


printing (instance)

printOn: aStream
Print a representation of the receiver

top


still unclassified (instance)

errorValue: anException
Private - Raise anException whenever #value is called.

top