toolish - v0.2.5
    Preparing search index...

    Class Interval

    Convenience wrapper for setInterval.

    setInterval Uses setInterval, so the same delay restrictions apply.

    Implements

    Index

    Constructors

    Methods

    Constructors

    • Runs action every ms milliseconds. CAUTION: If the given action callback throws an error, the interval is cancelled to avoid excessive error logging.

      Parameters

      • ms: number

        target delay

      • action: Producer<unknown>

        called after each delay

      Returns Interval

    Methods

    • limits the number of invocations

      Parameters

      • limit: number

      Returns this