Promises and futures largely compatible with the clojure.core api.
The main difference is, that [[cljs.core/deref]]/@
cannot be used
on promises and futures. Instead async-deref
can be used to work
with the respective results asynchronously. Also, futures may do
asynchronous operations, by returning a core/promise
.
Note that [[cljs.core/realized?]] works on both promises and futures.
Promises and futures largely compatible with the clojure.core api. The main difference is, that [[cljs.core/deref]]/`@` cannot be used on promises and futures. Instead [[async-deref]] can be used to work with the respective results asynchronously. Also, futures may do asynchronous operations, by returning a [[core/promise]]. Note that [[cljs.core/realized?]] works on both promises and futures.
Core functionality to do asynchronous programming.
Core functionality to do asynchronous programming.
Seemless asynchronous testing based on promises for cljs.test.
Seemless asynchronous testing based on promises for cljs.test.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close