Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RetryStrategy

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

Hierarchy

  • RetryStrategy

Index

Methods

Static ExponentialBackoffSearch playground for ExponentialBackoff

  • ExponentialBackoff(maxRetries?: number, baseInterval?: number): (url: string, request: WebRequest, retryIndex: number) => number
  • 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 (url: string, request: WebRequest, retryIndex: number) => number

    the strategy function to use

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

        • url: string
        • request: WebRequest
        • retryIndex: number

        Returns number

Legend

  • Property
  • Method
  • Constructor
  • Property
  • Static method