Returns a lazy sequence of the values of the exprs, which are
evaluated in parallel
;; pvaules 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.
(defmacro pvalues
"Returns a lazy sequence of the values of the exprs, which are
evaluated in parallel"
{:added "1.0"
:static true}
[& exprs]
`(pcalls ~@(map #(list `fn [] %) exprs)))
Comments top
No comments for pvalues. Log in to add a comment.