Skip to main content

Interface: GrpcRetryOptions

Properties​

delayFunction​

delayFunction: (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​

attempt​

number

status​

StatusObject

Returns​

number


retryableDecider​

retryableDecider: (attempt, status) => boolean

A function which accepts a failed status object and returns true if the call should be retried

Parameters​

attempt​

number

status​

StatusObject

Returns​

boolean