Constructors
Private
constructor
- new RetryConditions(): RetryConditions
Methods
Static
backoff
- backoff(delayMillis?): ((e, attempt) => Promise<boolean>)
Returns ((e, attempt) => Promise<boolean>)
- (e, attempt): Promise<boolean>
Returns Promise<boolean>
Static
delay
- delay(maxAttempt?, delayMillis?): ((e, attempt) => Promise<boolean>)
Parameters
- maxAttempt: number = 3
- delayMillis: Duration = ...
Returns ((e, attempt) => Promise<boolean>)
- (e, attempt): Promise<boolean>
Returns Promise<boolean>