Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > IRunWithRetriesOptions

IRunWithRetriesOptions interface​

Signature:

export interface IRunWithRetriesOptions<TResult> 

Remarks​

Used with Async.runWithRetriesAsync().

Properties​

Property

Modifiers

Type

Description

action

(retryCount: number) => Promise<TResult> | TResult

The action to be performed. The action is repeatedly executed until it completes without throwing or the maximum number of retries is reached.

maxRetries

number

The maximum number of times the action should be retried.

retryDelayMs?

number

(Optional) The delay in milliseconds between retries.