Class SequentialBucket

A ratelimit bucket.

Hierarchy

  • SequentialBucket

Constructors

Methods

Properties

Constructors

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

    • priority: boolean = false

    Returns void

Properties

last: number
latencyRef: LatencyRef
limit: number
processing: boolean | Timeout = false
remaining: number
reset: number