Interface: GrpcRetryOptions
client.GrpcRetryOptions
Properties
delayFunction
• delayFunction: (attempt
: number
) => number
Type declaration
▸ (attempt
): number
A function which accepts the current retry attempt (starts at 0) and returns the millisecond delay that should be applied before the next retry.
Parameters
Name | Type |
---|---|
attempt | number |
Returns
number
maxRetries
• maxRetries: number
Maximum number of allowed retries. Defaults to 10.
retryableDecider
• retryableDecider: (status
: StatusObject
) => boolean
Type declaration
▸ (status
): boolean
A function which accepts a failed status object and returns true if the call should be retried
Parameters
Name | Type |
---|---|
status | StatusObject |
Returns
boolean