Function setTimeout

  • Run a function after a given time. Mimics the behavior of setTimeout in the browser.

    Returns

    A unique ID for removing the timeout.

    Parameters

    • callback: Function

      The callback function to run after the given time.

    • time: number

      The timeout in milliseconds.

    Returns string

Generated using TypeDoc