@jiminp/tooltool
    Preparing search index...

    Interface RateLimitedFunction<ArgsType, ReturnType>

    A function wrapper returned by rateLimited enforcing a minimum delay between calls.

    interface RateLimitedFunction<ArgsType extends unknown[], ReturnType> {
        get limit_duration_ms(): number;
        get processing_count(): number;
        get wait_count(): number;
        (...args: ArgsType): Promise<ReturnType>;
    }

    Type Parameters

    • ArgsType extends unknown[]

      Tuple of the wrapped function's parameter types.

    • ReturnType

      The resolved return type.

    Index

    Accessors