Skip to content

Commit b8205bc

Browse files
committed
Adds async all helper
1 parent 953a402 commit b8205bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/jtk_dvlp/async.cljc

+5
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@
9797
(ex-info "unknown" {:code :unknown} e#))))
9898
chs))
9999

100+
(defn all
101+
"Alias for `(map vector chs)` providing an vector of all resolved values."
102+
[chs]
103+
(map vector chs))
104+
100105
(defn smap
101106
"Like `clojure.core/map` but given function `<f` is async. Execution of `<f` with values of `xs` will be sequential with the given order of `xs`. Carries thrown exception (will convert to `ExceptionInfo`) as result.
102107

0 commit comments

Comments
 (0)