📜  javascript cuncurrency - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:04.707000             🧑  作者: Mango

代码示例2
// Call both functions
const somePromise = someCall();
const anotherPromise = anotherCall();

// Await both promises    
const someResult = await somePromise;
const anotherResult = await anotherPromise;