toolish - v0.2.5
    Preparing search index...

    Class Debounce<T, P>

    A mechanism that defers function calls until no calls are received during a given interval.

    Type Parameters

    • T
    • P extends any[]

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Schedule a call to the underlying function with the given parameters. If subsequent calls are made within the same interval, this call and its parameters are discarded.

      Parameters

      • ...parameters: P

      Returns Promise<T>

    • If a call is currently scheduled, execute it immediately

      Returns void

    • Cancel any scheduled call

      Parameters

      • reason: any = ...

      Returns void

    • Returns void