• Invokes func after wait milliseconds. Any additional arguments are provided to func when it’s invoked.

    Parameters

    • func: ((...args: any[]) => any)

      The function to delay.

        • (...args): any
        • Parameters

          • Rest...args: any[]

          Returns any

    • wait: number

      The number of milliseconds to delay invocation.

    • Rest...args: any[]

      The arguments to invoke the function with.

    Returns number

    Returns the timer id.