What is/are the appropriate scenario(s) for using promise.all()
Is there a better way to utilize promise.all()?
Should it be used ideally just when all of the promise objects are of the same or comparable type?
The only one that comes to mind is:
- Use promise.all() if you want to resolve the promise only if all of the promise objects resolve and reject if even one rejects.