Class SequentialBucket

A ratelimit bucket.

Hierarchy

  • SequentialBucket

Constructors

  • Parameters

    Returns SequentialBucket

Properties

#private: any
check: any
last: number
latencyRef: LatencyRef
limit: number
processing: boolean | Timeout
remaining: number
reset: number

Methods

  • Add an item to the queue.

    Parameters

    • func: ((cb) => void)

      The function to queue.

        • (cb): void
        • Parameters

          • cb: (() => void)
              • (): void
              • Returns void

          Returns void

    • Optional priority: boolean

    Returns void

Generated using TypeDoc