Liking cljdoc? Tell your friends :D

std.dispatch.debounce


+defaults+clj


create-dispatchclj

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

creates a debource executor

creates a debource executor
raw docstring

create-dispatch-typecheckclj


start-dispatchclj

(start-dispatch dispatch)

starts the debounce executor

starts the debounce executor
raw docstring

stop-dispatchclj

(stop-dispatch dispatch)

stops the debounce executor

stops the debounce executor
raw docstring

submit-delayclj

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

submits and executes after delay

(test-scaffold (-> +test-config+ (assoc-in [:options :debounce :strategy] :delay)) 10 2) => [{:id 0, :state 9} {:id 1, :state 9}]

submits and executes after delay

(test-scaffold (-> +test-config+
                   (assoc-in [:options :debounce :strategy] :delay))
               10 2)
=> [{:id 0, :state 9} {:id 1, :state 9}]
raw docstring

submit-dispatchclj

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

submits to the debounce executor

submits to the debounce executor
raw docstring

submit-eagerclj

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

submits and executes eagerly

(test-scaffold +test-config+ 10 2) => [{:id 0, :state 0} {:id 1, :state 0}]

submits and executes eagerly

(test-scaffold +test-config+
               10 2)
=> [{:id 0, :state 0} {:id 1, :state 0}]
raw docstring

submit-notifyclj

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

submits and executes on as well and after delay

submits and executes on as well and after delay
raw docstring

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

× close