Class: Debouncer

qui.utils.Debouncer(func, delay)

A class that debounces function calls, ensuring that a function is not called more often than a specified delay.

Constructor

new Debouncer(func, delay)

Parameters:
Name Type Description
func function

the function to debounce

delay Number

the debouncing delay, in milliseconds

Source:

Methods

call()

Call function ensuring debouncing condition. Any previous pending call is cancelled. Arguments are passed to the function when called.

Source:

isPending() → {Boolean}

Tell if there is a pending call.

Source:
Returns:
Type
Boolean