promise-throttle - v2.1.0
    Preparing search index...

    Interface QueueOptions

    Options for add and addAll.

    interface QueueOptions {
        signal?: AbortSignal;
        weight?: number;
    }
    Index
    signal?: AbortSignal

    A signal to abort the function while it is queued. When it is aborted, the returned promise is rejected right away with signal.reason, or with an error whose name is AbortError. Aborted functions don't count towards the limit of requests per second.

    weight?: number

    How "heavy" the function is. The function that comes after it waits weight times longer than it would after a regular one.

    1