• Defers invoking the func until the current call stack has cleared. Any additional arguments are provided to func when it’s invoked.

    Parameters

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

      The function to defer.

    • ...args: any[]

      The arguments to invoke the function with.

    Returns number

    Returns the timer id.