zibri
    Preparing search index...

    A rate limiter that provides an "isAvailable" method which ensures that no more than the provided maximum can be used.

    Index

    Methods

    • Checks whether or not the provided count of the limited resource is currently available or if it has been used up.

      Parameters

      • count: number

        The amount of the limited resource to request.

      Returns boolean

      True when the provided count is available, false otherwise.