Back

pipeline (clj)

(source)

function

(pipeline n to xf from) (pipeline n to xf from close?) (pipeline n to xf from close? ex-handler)
Takes elements from the from channel and supplies them to the to channel, subject to the transducer xf, with parallelism n. Because it is parallel, the transducer will be applied independently to each element, not across elements, and may produce zero or more outputs per input. Outputs will be returned in order relative to the inputs. By default, the to channel will be closed when the from channel closes, but can be determined by the close? parameter. Will stop consuming the from channel if the to channel closes. Note this is supplied for API compatibility with the Clojure version. Values of N > 1 will not result in actual concurrency in a single-threaded runtime.

Examples