Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

为什么这种 await 写法会同时触发?

$
0
0
let fooPromise = getFoo();
let barPromise = getBar();
let foo = await fooPromise;
let bar = await barPromise;

Viewing all articles
Browse latest Browse all 14821

Trending Articles