Skip to content

Commit 090dca2

Browse files
committed
Set version to 10.0.570
1 parent 7d44ef1 commit 090dca2

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog #
22

3-
## Version 10.0.569
3+
## Version 10.0.570
44

55
- Add `promesa.exec.csp/mult*` alternative multiplexer constructor
66
more similar to the `clojure.core.async/mult` one

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ Here you can look a detailed [documentation][1].
1818
deps.edn:
1919

2020
```clojure
21-
funcool/promesa {:mvn/version "10.0.569"}
21+
funcool/promesa {:mvn/version "10.0.570"}
2222
```
2323

2424
Leiningen:
2525

2626
```clojure
27-
[funcool/promesa "10.0.569"]
27+
[funcool/promesa "10.0.570"]
2828
```
2929

3030
## On the REPL

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "promesa",
3-
"version": "9.0",
3+
"version": "10.0",
44
"description": "-",
55
"author": "-",
66
"license": "SEE LICENSE IN <LICENSE>",

src/promesa/util.cljc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
(-lock! [_])
7777
(-unlock! [_]))))
7878

79+
#?(:clj
7980
(defn count-down-latch
8081
[n]
8182
(let [cdown (CountDownLatch. (int n))]
@@ -90,13 +91,14 @@
9091
(invoke [_ _]
9192
(.countDown ^CountDownLatch cdown))
9293
(invoke [_ _ _]
93-
(.countDown ^CountDownLatch cdown)))))
94+
(.countDown ^CountDownLatch cdown))))))
9495

96+
#?(:clj
9597
(defn wait-all!
9698
[promises]
9799
(let [total (count promises)]
98100
(when (pos? total)
99101
(let [cdown-fn (count-down-latch total)]
100102
(doseq [p promises]
101103
(pt/-finally p cdown-fn))
102-
(pt/-await cdown-fn)))))
104+
(pt/-await cdown-fn))))))

0 commit comments

Comments
 (0)