Skip to main content

future-call

functionv1.1

clojure.core/future-call

Available in:BBCLJ
(future-call [f])
Takes a function of no args and yields a future object that will invoke the function in another thread, and will cache the result and return it on all subsequent calls to deref/@. If the computation has not yet finished, calls to deref/@ will block, unless the variant of deref with timeout is used. See also - realized?.

No examples yet. Be the first to add one!