Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > Async > runWithRetriesAsync

Async.runWithRetriesAsync() method

Executes an async function and optionally retries it if it fails.

Signature:

static runWithRetriesAsync<TResult>(input: IRunWithRetriesOptions<TResult>): Promise<TResult>;

Parameters

Parameter

Type

Description

{ action, maxRetries, retryDelayMs }

(not declared)

input

IRunWithRetriesOptions<TResult>

Returns:

Promise<TResult>