Create a value.
Create a value. This method is called when the lazy cell is first accessed. After it is first accessed the value will be cached. There is a chance this method will be called more than once if the cell is accessed from multiple threads.
A value of type A
that indicates the cell hasn't been evaluated.
A value of type A
that indicates the cell hasn't been evaluated. Common
values are null
, None
or 0
. It's important the marker is not a valid
value.
Whether or not the cell value has been evaluated yet.
The value in the cell.
A cell that evaluates its value on demand. Cell access is unsychronized for performance reasons. However the cell may be safely accessed from multiple threads provided its
create
method is idempotent.