A ratelimit bucket.

Hierarchy

  • SequentialBucket

Constructors

Properties

Methods

Constructors

Properties

last: number
latencyRef: LatencyRef
limit: number
processing: boolean | Timeout = false
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

    • priority: boolean = false

    Returns void