the function to obtain the current value at any point in time
the computation to run to completion in another thread
The current result of f(), or the final result if complete.
The current result of f(), or the final result if complete.
the current value
Returns string formatted according to given format
string.
Returns string formatted according to given format
string.
Format strings are as for String.format
(@see java.lang.String.format).
Whether the computation is complete.
Whether the computation is complete.
true if the computation is complete.
A
DelayedLazyVal
is a wrapper for lengthy computations which have a valid partially computed result.The first argument is a function for obtaining the result at any given point in time, and the second is the lengthy computation. Once the computation is complete, the
apply
method will stop recalculating it and return a fixed value from that point forward.2.8