pcalls

clojure.core

  • (pcalls & fns)
Executes the no-arg fns in parallel, returning a lazy sequence of
their values

2 Examples top

  • user=> (pcalls function-1 function-2 ...)
    
    (result1 result2 ...)
  • ;; 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.
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:6117 top

(defn pcalls
  "Executes the no-arg fns in parallel, returning a lazy sequence of
  their values"
  {:added "1.0"
   :static true}
  [& fns] (pmap #(%) fns))
Vars in clojure.core/pcalls:
Used in 0 other vars

Comments top

No comments for pcalls. Log in to add a comment.