Skip to main content

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

Parameters
NameType
attemptnumber
statusStatusObject
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

Parameters
NameType
attemptnumber
statusStatusObject
Returns

boolean