Function limitedCalls

  • Function to limit the calls based on the settings.

    Returns

    Type Parameters

    • T

    Parameters

    • func: ((...args) => Promise<T>)

      The function to use. This should be an async function.

        • (...args): Promise<T>
        • Parameters

          • Rest ...args: any[]

          Returns Promise<T>

    • options: Partial<TLimitedOptions>

      The Options.

    Returns ((...args) => Promise<T>)

      • (...args): Promise<T>
      • Parameters

        • Rest ...args: any[]

        Returns Promise<T>

Generated using TypeDoc