The type of elements in the input array
The type of successfully mapped elements
The type of the error value (defaults to undefined)
The input array to map over
The async function to apply to each element
Optionaloptions: { concurrency?: number; errorValue?: E; signal?: AbortSignal } = {}Optional configuration
Optionalconcurrency?: numberMaximum number of concurrent operations
OptionalerrorValue?: EValue to use in the results array when a callback throws
Optionalsignal?: AbortSignalAbortSignal to cancel processing. When aborted, the promise rejects with an AbortError.
Promise resolving to an object with results and errors.
Maps over an array with an asynchronous callback function, collecting both results and errors. Unlike asyncMap, this function never throws due to callback errors — failed items are replaced with
errorValue(defaultundefined) in the results array and their errors are collected in the returnederrorsarray.Use this when you want all items processed regardless of individual failures.