Finally async/await will be supported in all major browser soon except IE. So now we can start writing more readable code with async/<
async
await
If you're ok with the fail-fast behavior of Promise.all and the destructuring assignment syntax:
const [userResponse, postsResponse] = await Promise.all([ fetchUserAsync(), fetchPostsAsync(), ]);