0

I need to execute three async function parallely and timeout them after 3 sec, I was able to do it using bluebird library as follows -:

bluebird.all([
  asyncCall1(),
  asyncCall2(),
  asyncCall3(),
]).timeout(3000);

But now, i am moving this code to ES6 and want to know

How I can do it using native ES6 promises only ??

Aman Gupta
  • 13
  • 1
  • 3

0 Answers0