Skip to content

Commit

Permalink
perf: ♻️ Perfect allSettledWrapper method
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Jul 14, 2024
1 parent 1beb7b7 commit 5b7d0af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function allSettledWrapper(list = [], iterator) {
for (let index = 0; index < list.length; index++) {
const item = list[index]

promises.push(iterator(item))
promises.push(iterator(item, index))
}

return Promise.allSettled(promises)
Expand Down

0 comments on commit 5b7d0af

Please sign in to comment.