Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • RetryStrategy

Index

Constructors

Methods

  • 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
      • Function used to defines an exponential back off strategy

        Parameters

        Returns number

        the strategy function to use

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme