Open this example in the interactive library
Source code
console.log(
await Promise.all([Promise.resolve("a"), Promise.resolve("b")]),
);
Sample output
[ 'a', 'b' ]

Run tasks concurrently. A self-contained example using the JavaScript runtime.
Open this example in the interactive library
console.log(
await Promise.all([Promise.resolve("a"), Promise.resolve("b")]),
);
[ 'a', 'b' ]