Debounced method invoker.

This class allows you to invoke a method after a specified delay.

If the method is invoked again before the delay completes, the timer restarts, ensuring the method is only called once after the final invocation.

Constructors

Properties

Methods

Constructors

Properties

delay: number

Time in ms to delay the method invoke.

500
method: (() => void)

Method to be invoked with delay.

timer: Timer

Timer to handle delay method trigger.

Methods