O3 Framework / RetryOptions
Defined in: packages/framework/esm-utils/src/retry.ts:6
Options for configuring the behavior of the retry function.
optionalgetDelay(attempt):number
Defined in: packages/framework/esm-utils/src/retry.ts:18
Calculates the next delay (in milliseconds) before a retry attempt.
Returning a value for the inital attempt (0) delays the initial function invocation.
number
The current (zero-based) retry attempt. 0 indicates the initial attempt.
number
optionalonError(e,attempt):void
Defined in: packages/framework/esm-utils/src/retry.ts:25
Called when invoking the function resulted in an error. Allows running side-effects on errors, e.g. logging.
any
The error thrown by the function.
number
The current (zero-based) retry attempt. 0 indicates the initial attempt.
void
optionalshouldRetry(attempt):any
Defined in: packages/framework/esm-utils/src/retry.ts:12
Determines whether the retry function should retry executing the function after it failed with an error on the current attempt.
number
The current (zero-based) retry attempt. 0 indicates the initial attempt.
any