Home > @rushstack/node-core-library > Async > runWithRetriesAsync
Async.runWithRetriesAsync() method
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Executes an async function and optionally retries it if it fails.
Signature:
static runWithRetriesAsync<TResult>({ action, maxRetries, retryDelayMs }: IRunWithRetriesOptions<TResult>): Promise<TResult>;
Parameters
Parameter | Type | Description |
---|---|---|
{ action, maxRetries, retryDelayMs } | IRunWithRetriesOptions<TResult> |
Returns:
Promise<TResult>