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.

    • priority: boolean = false

    Returns void