A class representing a timeout that triggers a callback function after a specified time interval.

Constructors

Properties

Methods

Constructors

  • Constructs a new Timeout instance with the given timeout duration and callback function.

    Parameters

    • timeoutMil: number

      The timeout duration in milliseconds.

    • callback: (() => void)

      The function to be called when the timeout is triggered.

        • (): void
        • Returns void

    Returns Timeout

Properties

isCalled: boolean
isCleared: boolean
timeoutHook: Timeout

Methods

Generated using TypeDoc