The type of elements in the input array
The array of elements to iterate over.
The asynchronous callback function that will be executed for each element.
Optionaloptions: { concurrency?: number; signal?: AbortSignal } = {}Optional configuration
Optionalconcurrency?: numberMaximum number of concurrent operations
Optionalsignal?: AbortSignalAbortSignal to cancel processing.
A Promise that resolves when all elements have been processed.
Asynchronously iterates over an array, executing a provided
callbackfunction for each element. Rejects on the first error.For collecting errors instead of failing fast, use asyncForEachSettled.