Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async function load() { // ES7
- let fooPromise = foo();
- let barPromise = bar();
- // foo and bar are executed before Promise.all
- let results = await Promise.all([fooPromise, barPromise]);
- console.log(results);
- }
Add Comment
Please, Sign In to add comment