Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Retry<T>

Type parameters

  • T

Hierarchy

  • Retry

Index

Constructors

constructor

Properties

Private interval

interval: number = DEFAULT_RETRY_INTERVAL

Private onResolve

onResolve: CheckPromise<T>

Private promiseThunk

promiseThunk: PromiseThunk<T>

Private timeout

timeout: number = DEFAULT_RETRY_TIMEOUT

Methods

start

  • start(): Promise<T>

withCheck

withInterval

  • withInterval(interval: number): this

withPromise

  • withPromise(promiseThunk: () => Promise<T>): this

withTimeout

  • withTimeout(timeout: number): this

Static from

  • from<T>(promiseThunk: () => Promise<T>): Retry<T>

Generated using TypeDoc