(future executor & body)
Takes an executor instance and a body of expressions and yields a (async) future object that will invoke the body 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..
Takes an executor instance and a body of expressions and yields a (async) future object that will invoke the body 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..
(future-call executor
f
&
{:keys [preserve-bindings?] :or {preserve-bindings? true}})
Takes an executor instance and a function of no args and yields a (async) 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.
Takes an executor instance and a function of no args and yields a (async) 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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close