3 ms·
I think you missed this part: "instead make developers explicitly say when they wish for the result to be async" So using Promise.all() would be as simple as:
by laughinghan 7y ago
I think you missed this part: "instead make developers explicitly say when they wish for the result to be async"
So using Promise.all() would be as simple as:
const results = Promise.all(async fetch(url1), async fetch(url2))