Skip to content

Commit

Permalink
Adds async all helper
Browse files Browse the repository at this point in the history
  • Loading branch information
jtkDvlp committed Aug 8, 2022
1 parent 953a402 commit b8205bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/jtk_dvlp/async.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@
(ex-info "unknown" {:code :unknown} e#))))
chs))

(defn all
"Alias for `(map vector chs)` providing an vector of all resolved values."
[chs]
(map vector chs))

(defn smap
"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.
Expand Down

0 comments on commit b8205bc

Please # to comment.