@jiminp/tooltool
    Preparing search index...

    Interface RateLimitedFunction<ArgsType, ReturnType>

    A serialized function wrapper returned by rateLimited with minimum start-to-start spacing.

    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
    • get limit_duration_ms(): number

      Current minimum start-to-start delay (ms); reading samples a dynamic duration.

      Returns number