Scala Library
|
|
scala/concurrent/DelayedLazyVal.scala
]
class
DelayedLazyVal[T](f : () => T, body : => Unit)
extends
AnyRefDelayedLazyVal
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.f -
the function to obtain the current value at any point in timebody -
the computation to run to completion in another threadMethod Summary | |
def
|
apply
: T
The current result of f(), or the final result if complete.
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
Scala Library
|
|