A Lock that issues permits at a fixed rate.

Implements

Constructors

  • Parameters

    • permits: number = 1

      Total number of permits issued over given period.

    • period: number = 1000

      The time period in milliseconds.

    • Optional buffer: Int32Array

      Shared array buffer for permit synchronization.

    Returns RateLimiter

Properties

interval: number
resetTimer: number = 0

Methods

Generated using TypeDoc