std.dispatch.debounce

+defaults+

create-dispatch

added in 3.0

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

creates a debource executor

create-dispatch-typecheck

start-dispatch

added in 3.0

(start-dispatch dispatch)

starts the debounce executor

stop-dispatch

added in 3.0

(stop-dispatch dispatch)

stops the debounce executor

submit-delay

added in 3.0

(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}

submit-dispatch

added in 3.0

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

submits to the debounce executor

submit-eager

added in 3.0

(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}

submit-notify

added in 3.0

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

submits and executes on as well and after delay