Iterates over an array and applies an async function to each item sequentially.
Usages of this function should be intentional. If it's possible to parallelize the tasks, you
should use .map and Promise.all() instead, or you could batch promises together with some
limit. Only uses this when order matters or when parallel execution would cause issues (e.g.,
rate limiting, database transactions).
Iterates over an array and applies an async function to each item sequentially.
Usages of this function should be intentional. If it's possible to parallelize the tasks, you should use
.mapandPromise.all()instead, or you could batch promises together with some limit. Only uses this when order matters or when parallel execution would cause issues (e.g., rate limiting, database transactions).