You're viewing version 1.2.0 of pcalls. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

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:5450 top

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

Comments top

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