(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))(submit-dispatch {:keys [runtime handler] :as dispatch} entry)submits to the core dispatch
submits to the core dispatch
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |