Description

Run promises in parallel. Will throw an exception if one of the requests fail.

Syntax

Promise.all([
    asyncFunc1(),
    asyncFunc2(),
])
.then(([result1, result2]) => {
})
.catch(err => {
    // Receives first rejection among the Promises
});