Liking cljdoc? Tell your friends :D

std.dispatch.common


+args+clj


+pool-defaults+clj


await-terminationclj

(await-termination dispatch)
(await-termination {:keys [runtime] :as dispatch} callback)

generic await termination function for executor

generic await termination function for executor
raw docstring

check-hooksclj

(check-hooks hooks)

Checks that hooks conform to arguments

Checks that hooks conform to arguments
raw docstring

create-mapclj

(create-map {:keys [hooks options] :as m})

creates the base executor map

(create-map {:options {:pool {:size 1}}}) => (contains {:options {:pool {:keep-alive 1000, :size 1, :max 1}}, :runtime map?})

creates the base executor map

(create-map {:options {:pool {:size 1}}})
=> (contains {:options {:pool {:keep-alive 1000,
                               :size 1,
                               :max 1}},
              :runtime map?})
raw docstring

handle-fnclj

(handle-fn {:keys [handler] :as dispatch} entry)

generic handle function for entry

(let [thunk (handle-fn (-> {:id :hello :handler (fn [{:keys [id]} entry] {:id id :entry entry})} create-map) {:a 1})] (thunk)) => {:id :hello, :entry {:a 1}}

generic handle function for entry

(let [thunk (handle-fn (-> {:id :hello
                            :handler (fn [{:keys [id]} entry]
                                       {:id id :entry entry})}
                           create-map)
                       {:a 1})]
  (thunk))
=> {:id :hello, :entry {:a 1}}
raw docstring

health-dispatchclj

(health-dispatch dispatch)

returns the health of the executor

returns the health of the executor
raw docstring

info-baseclj

(info-base {:keys [runtime type options] :as dispatch})

returns base executor info

returns base executor info
raw docstring

info-dispatchclj

(info-dispatch dispatch)
(info-dispatch {:keys [runtime] :as dispatch} level)

returns generic executor info

(info-dispatch |dispatch|) => {:type nil, :running true, :counter {:submit 0, :queued 0, :process 0, :complete 0, :error 0}, :options {:pool {:keep-alive 1000, :size 1, :max 1}}, :current {:threads 0, :active 0, :queued 0, :terminated false}}

returns generic executor info

(info-dispatch |dispatch|)
=> {:type nil, :running true,
    :counter {:submit 0, :queued 0, :process 0, :complete 0, :error 0},
    :options {:pool {:keep-alive 1000, :size 1, :max 1}},
    :current {:threads 0, :active 0, :queued 0, :terminated false}}
raw docstring

kill-dispatchclj

(kill-dispatch dispatch)
(kill-dispatch {:keys [runtime options] :as dispatch} callback)

generic force kill function for executor

generic force kill function for executor
raw docstring

props-dispatchclj

(props-dispatch {:keys [runtime] :as dispatch})

returns the props of the executor

returns the props of the executor
raw docstring

remote?-dispatchclj

(remote?-dispatch dispatch)

returns whether executor is remote

returns whether executor is remote
raw docstring

start-dispatchclj

(start-dispatch {:keys [runtime options] :as dispatch})

generic start function for executor

generic start function for executor
raw docstring

started?-dispatchclj

(started?-dispatch {:keys [runtime] :as dispatch})

checks if executor has started

checks if executor has started
raw docstring

stop-dispatchclj

(stop-dispatch dispatch)
(stop-dispatch {:keys [runtime options] :as dispatch} callback)

generic stop function for executor

generic stop function for executor
raw docstring

stopped?-dispatchclj

(stopped?-dispatch dispatch)

checks if executor has stopped

checks if executor has stopped
raw docstring

to-stringclj

(to-string {:keys [type display] :as dispatch})

returns the executorstring

returns the executorstring
raw docstring

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

× close