@amirsavand/ngx-common - v5.1.0
    Preparing search index...

    Class DebouncedInvoker

    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.

    Index

    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

    • Invoke the method with delay. Stops previous invoke in progress.

      Returns void