Create an LAFuture from a function that will be applied on a separate thread.
Create an LAFuture from a function that
will be applied on a separate thread. The LAFuture
is returned immediately and the value may be obtained
by calling get
the type
the function that computes the value of the future
an LAFuture that will yield its value when the value has been computed
Build a new future with a call-by-name value that returns a type T
Build a new future with a call-by-name value that returns a type T
the type that
the call-by-name code the defines the future
Collect all the future values into the aggregate future The returned future will be satisfied when all the collected futures are satisfied
Collect all the future values into the aggregate future The returned future will be satisfied when all the collected futures are satisfied or if any of the futures is Empty, then immediately satisfy the returned future with an Empty
Do something when a future is created on this thread.
Do something when a future is created on this thread. This can be used to see if there's any Future activity on a thread and if there is, we can do smart things on an observing thread.
the type of the value returned by toDo
the function to execute on Future creation
the action call-by-name code to execute whi
the value computed by toDo