A class representing an interval that triggers a callback function repeatedly at a specified time interval.

Constructors

Properties

Methods

Constructors

  • Constructs a new Interval instance with the given interval duration and callback function.

    Parameters

    • timeoutMil: number

      The interval duration in milliseconds.

    • callback: (() => void)

      The function to be called when the interval is triggered.

        • (): void
        • Returns void

    Returns Interval

Properties

intervalHook: Timeout
isCalled: boolean
isCleared: boolean

Methods

Generated using TypeDoc