Home > @rushstack/node-core-library > Async
Async class
Utilities for parallel asynchronous operations, for use with the system Promise APIs.
Signature:
export declare class Async
Methods
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 |