Amazon Vinyl
    Preparing search index...

    Interface RateLimitOptions

    interface RateLimitOptions {
        capacity: number;
        interval: number;
    }
    Index
    capacity: number

    The maximum number of calls that may run immediately in a burst — the token bucket's capacity. Must be at least 1.

    interval: number

    Seconds to refill one token. In steady state the inner function runs at most once every interval seconds. Must be greater than 0.