Liking cljdoc? Tell your friends :D

std.dispatch.core


create-dispatchclj

(create-dispatch m)

creates a core dispatch

;; POOL SIZE 2, NO SLEEP (test-scaffold +test-config+ 100 10) => #(-> % count (= 100))

;; POOL SIZE 2, WITH SLEEP (test-scaffold (assoc +test-config+ :handler (fn [_ _] (Thread/sleep 200))) 5 100) => #(-> % count (= 2))

;; POOL SIZE 50, WITH SLEEP (test-scaffold (-> +test-config+ (assoc :handler (fn [_ _] (Thread/sleep 200))) (assoc-in [:options :pool :size] 50)) 80 30) => #(-> % count (>= 50))

creates a core dispatch

;; POOL SIZE 2, NO SLEEP
(test-scaffold +test-config+ 100 10)
=> #(-> % count (= 100))

;; POOL SIZE 2, WITH SLEEP
(test-scaffold (assoc +test-config+
                      :handler (fn [_ _] (Thread/sleep 200)))
               5
               100)
=> #(-> % count (= 2))

;; POOL SIZE 50, WITH SLEEP
(test-scaffold (-> +test-config+
                   (assoc :handler (fn [_ _] (Thread/sleep 200)))
                   (assoc-in [:options :pool :size] 50))
               80
               30)
=> #(-> % count (>= 50))
raw docstring

create-dispatch-typecheckclj


submit-dispatchclj

(submit-dispatch {:keys [runtime handler] :as dispatch} entry)

submits to the core dispatch

submits to the core dispatch
raw docstring

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

× close