Debouncer:
Filter:
Classes (extension) | Utilities

Debouncer
ExtensionExtension

A function debouncer
Location: NOT INSTALLED!

Description

A debouncer counter for functions. Has an option to fire immediately.

Class Methods

.new

Arguments:

func

any function to be debounced

wait

the debounce wait time

immediate

whether to fire the first item immediately.

Returns:

a Debouncer

Inherited class methods

Instance Methods

PRIVATE: init (describe method here)

.trigger

triggers the function, only once within the wait period

Arguments:

... args

any arguments that need to be passed to the function.

.reset

reset the debouncer, setting the counts to 0

Inherited instance methods

Examples