File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ Here you can look a detailed [documentation][1].
1818deps.edn:
1919
2020``` clojure
21- funcool/promesa {:mvn/version " 10.0.569 " }
21+ funcool/promesa {:mvn/version " 10.0.570 " }
2222```
2323
2424Leiningen:
2525
2626``` clojure
27- [funcool/promesa " 10.0.569 " ]
27+ [funcool/promesa " 10.0.570 " ]
2828```
2929
3030## On the REPL
Original file line number Diff line number Diff line change 11{
22 "name" : " promesa" ,
3- "version" : " 9 .0" ,
3+ "version" : " 10 .0" ,
44 "description" : " -" ,
55 "author" : " -" ,
66 "license" : " SEE LICENSE IN <LICENSE>" ,
Original file line number Diff line number Diff line change 7676 (-lock! [_])
7777 (-unlock! [_]))))
7878
79+ #?(:clj
7980(defn count-down-latch
8081 [n]
8182 (let [cdown (CountDownLatch. (int n))]
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))))))
You can’t perform that action at this time.
0 commit comments