cunnurrency javascript
const [someResult, anotherResult] = await Promise.all([someCall(), anotherCall()]);
Better Barracuda
const [someResult, anotherResult] = await Promise.all([someCall(), anotherCall()]);
// Call both functions
const somePromise = someCall();
const anotherPromise = anotherCall();
// Await both promises
const someResult = await somePromise;
const anotherResult = await anotherPromise;