banidb-api icon indicating copy to clipboard operation
banidb-api copied to clipboard

Use Promise.allSettled for multiple async tasks

Open AkalUstat opened this issue 4 years ago • 0 comments

For example, in this thread https://github.com/KhalisFoundation/banidb-api/pull/204#discussion_r457812309

Promise.allSettled (es2020) doesnt short circuit if one task fails.

Ex: fetching 20 angs. If one fails, it won't prevent the successful 19 from going through

AkalUstat avatar Jul 21 '20 05:07 AkalUstat