• 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.

    • wait: number

      The number of milliseconds to delay invocation.

    • ...args: any[]

      The arguments to invoke the function with.

    Returns number

    Returns the timer id.