wiki/content/20201111094957-executing_promises_in_parallel.md

283 B

date id title
2020-11-11 9c42715a-8324-4570-ab92-927b608aa02a Executing Promises in Parallel
Promise.all([
    asyncFunc1(),
    asyncFunc2(),
])
.then(([result1, result2]) => {
})
.catch(err => {
    // Receives first rejection among the Promises
});