diff --git a/CHANGELOG.md b/CHANGELOG.md index 12e61b1..cee94df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog # -## Version 10.0.569 +## Version 10.0.570 - Add `promesa.exec.csp/mult*` alternative multiplexer constructor more similar to the `clojure.core.async/mult` one diff --git a/README.md b/README.md index d5ae50f..b66702c 100644 --- a/README.md +++ b/README.md @@ -18,13 +18,13 @@ Here you can look a detailed [documentation][1]. deps.edn: ```clojure -funcool/promesa {:mvn/version "10.0.569"} +funcool/promesa {:mvn/version "10.0.570"} ``` Leiningen: ```clojure -[funcool/promesa "10.0.569"] +[funcool/promesa "10.0.570"] ``` ## On the REPL diff --git a/package.json b/package.json index bc63ea1..99343ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "promesa", - "version": "9.0", + "version": "10.0", "description": "-", "author": "-", "license": "SEE LICENSE IN ", diff --git a/src/promesa/util.cljc b/src/promesa/util.cljc index 6e14706..e51d829 100644 --- a/src/promesa/util.cljc +++ b/src/promesa/util.cljc @@ -76,6 +76,7 @@ (-lock! [_]) (-unlock! [_])))) +#?(:clj (defn count-down-latch [n] (let [cdown (CountDownLatch. (int n))] @@ -90,8 +91,9 @@ (invoke [_ _] (.countDown ^CountDownLatch cdown)) (invoke [_ _ _] - (.countDown ^CountDownLatch cdown))))) + (.countDown ^CountDownLatch cdown)))))) +#?(:clj (defn wait-all! [promises] (let [total (count promises)] @@ -99,4 +101,4 @@ (let [cdown-fn (count-down-latch total)] (doseq [p promises] (pt/-finally p cdown-fn)) - (pt/-await cdown-fn))))) + (pt/-await cdown-fn))))))