Home > @infiniteobjects/core-library-node > AsyncMapOptions
Async.map Options
Signature:
export interface AsyncMapOptions
| Property | Modifiers | Type | Description |
|---|---|---|---|
| concurrency? | readonly |
number | <p>(Optional) Number of concurrently pending promises returned by mapper.</p><p>Must be an integer from 1 and up or Infinity.</p><p>Infinity</p> |
| signal? | readonly |
AbortSignal | (Optional) You can abort the promises using [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController). |
| stopOnError? | readonly |
boolean | <p>(Optional) When set to false, instead of stopping when a promise rejects, it will wait for all the promises to settle and then reject with an [aggregated error](https://github.com/sindresorhus/aggregate-error) containing all the errors from the rejected promises.</p><p>true</p> |