Liking cljdoc? Tell your friends :D

tech.parallel.for


launch-parallel-forclj

(launch-parallel-for num-iters parallel-for-fn)

Given a function that takes exactly 2 arguments, a start-index and a length, call this function exactly N times where N is ForkJoinPool/getCommonPoolParallelism. Indexes will be split as evenly as possible among the invocations.

Given a function that takes exactly 2 arguments, a start-index and a length,
call this function exactly N times where N is ForkJoinPool/getCommonPoolParallelism.
Indexes will be split as evenly as possible among the invocations.
sourceraw docstring

parallel-forcljmacro

(parallel-for idx-var num-iters & body)

Like clojure.core.matrix.macros c-for except this expects index that run from 0 -> num-iters. Idx is named idx-var and body will be called for each idx in parallel.

Like clojure.core.matrix.macros c-for except this expects index that run from 0 ->
num-iters.  Idx is named idx-var and body will be called for each idx in parallel.
sourceraw docstring

serial-forcljmacro

(serial-for idx-var num-iters & body)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close