| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @rushstack/node-core-library > Async
Utilities for parallel asynchronous operations, for use with the system Promise APIs.
Signature:
export declare class Async |
Method |
Modifiers |
Description |
|---|---|---|
|
|
Given an input array and a | |
|
|
Given an input array and a | |
|
|
Returns a Signal, a.k.a. a "deferred promise". | |
|
|
Given an input array and a | |
|
|
Given an input array and a | |
|
runWithRetriesAsync({ action, maxRetries, retryDelayMs }, input) |
|
Executes an async function and optionally retries it if it fails. |
|
runWithTimeoutAsync({ action, timeoutMs, timeoutMessage }, input) |
|
Runs a promise with a timeout. If the promise does not resolve within the specified timeout, it will reject with an error. |
|
|
Return a promise that resolves after the specified number of milliseconds. | |
|
|
Ensures that the argument is a valid IWeighted<></>, with a |