No matching definitions.

watch/debounce

src/watch/debounce.tur

burst-collapse + coalesce helpers for batched events.

defn

debounce-batch-make

(debounce-batch-make)

allocate a new empty batch.

defn

debounce-batch-free

(debounce-batch-free [batch : int])

free batch + all contained event handles.

defn

debounce-batch-push

(debounce-batch-push [batch : int event : int])

append an event handle to the batch.

defn

debounce-batch-len

(debounce-batch-len [batch : int])

number of events currently in the batch.

defn

debounce-batch-event

(debounce-batch-event [batch : int idx : int])

get the ith event handle. Borrow, not owned.

defn

debounce-batch-coalesce

(debounce-batch-coalesce [batch : int])

collapse same-path runs to the latest event.