pipeline-blocking

added

ns
clojure.core.async

type
function

(pipeline-blocking n to xf from) (pipeline-blocking n to xf from close?) (pipeline-blocking n to xf from close? ex-handler)

Like pipeline, for blocking operations.

                (require '[clojure.core.async :as a :refer [chan to-chan pipeline-blocking <!!]])

(defn blocking-operation [arg])

(let [concurrent 10
      output-chan (chan)
      input-coll (range 0 1000)]
  (pipeline-blocking concurrent 
                     output-chan 
                     (map blocking-operation) 
                     (to-chan input-coll))
  (<!! (a/into [] output-chan)))