Skip to main content

CommonGetRetry

Callable

  • CommonGetRetry(Path: string, Callback: (this: XMLHttpRequest, xhr: XMLHttpRequest) => void, RetriesLeft?: number): void

  • Retry handler for CommonGet requests. Exponentially backs off retry attempts up to a limit of 1 minute. By default, retries up to a maximum of 10 times.


    Parameters

    • Path: string

      The path of the resource to request

    • Callback: (this: XMLHttpRequest, xhr: XMLHttpRequest) => void

      Callback to execute once the resource is received

      • optionalRetriesLeft: number

        How many more times to retry - after this hits zero, an error will be logged

      Returns void

      • Nothing