(await-termination dispatch)(await-termination {:keys [runtime] :as dispatch} callback)generic await termination function for executor
generic await termination function for executor
(check-hooks hooks)Checks that hooks conform to arguments
Checks that hooks conform to arguments
(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?})(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}}(health-dispatch dispatch)returns the health of the executor
returns the health of the executor
(info-base {:keys [runtime type options] :as dispatch})returns base executor info
returns base executor info
(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}}(kill-dispatch dispatch)(kill-dispatch {:keys [runtime options] :as dispatch} callback)generic force kill function for executor
generic force kill function for executor
(props-dispatch {:keys [runtime] :as dispatch})returns the props of the executor
returns the props of the executor
(remote?-dispatch dispatch)returns whether executor is remote
returns whether executor is remote
(start-dispatch {:keys [runtime options] :as dispatch})generic start function for executor
generic start function for executor
(started?-dispatch {:keys [runtime] :as dispatch})checks if executor has started
checks if executor has started
(stop-dispatch dispatch)(stop-dispatch {:keys [runtime options] :as dispatch} callback)generic stop function for executor
generic stop function for executor
(stopped?-dispatch dispatch)checks if executor has stopped
checks if executor has stopped
(to-string {:keys [type display] :as dispatch})returns the executorstring
returns the executorstring
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 |