RetryStrategy

Class used to define a retry strategy when error happens while loading assets

Hierarchy

  • RetryStrategy

Index

Methods

Static ExponentialBackoff

Find examples in Playground
  • ExponentialBackoff(maxRetries?: number, baseInterval?: number): function
  • Function used to defines an exponential back off strategy

    Parameters

    • Optional maxRetries: number

      defines the maximum number of retries (3 by default)

    • Optional baseInterval: number

      defines the interval between retries

    Returns function

    the strategy function to use

      • (url: string, request: XMLHttpRequest, retryIndex: number): number
      • Parameters

        • url: string
        • request: XMLHttpRequest
        • retryIndex: number

        Returns number

Generated using TypeDoc