Did you ever try to use data from multiple Promises but could not figure out how to sync up the requests to return a single result or Promise?
For example: A http request (e.g. usingĀ fetch
) returns a single Promise that is executed asynchronously. If you would just execute a bunch of requests, there is no chance to get all responses into one array just by calling them after each other. Continue reading Sync up multiple Promises to a single result set with Promise.all