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