Executes the no-arg fns in parallel, returning a lazy sequence of
their values
;; pcalls is implemented using Clojure futures. See examples for 'future' ;; for discussion of an undesirable 1-minute wait that can occur before ;; your standalone Clojure program exits if you do not use shutdown-agents.
(defn pcalls
"Executes the no-arg fns in parallel, returning a lazy sequence of
their values"
{:added "1.0"
:static true}
[& fns] (pmap #(%) fns))
Comments top
No comments for pcalls. Log in to add a comment.