The point about robustness is valid but for the sake of it, I'll mention that the potential issue with Promise.all can be avoided by using Promise.allSettled instead.
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Ahan, thank you for presenting the case in such detail. These things never occurred to me and now I know better. :)
The point about robustness is valid but for the sake of it, I'll mention that the potential issue with
Promise.all
can be avoided by usingPromise.allSettled
instead.