A ratelimit bucket.

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)) => void)

      The function to queue.

        • (cb): void
        • Parameters

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

          Returns void

    • priority: boolean = false

    Returns void