Actually the setTimeout in your example isn’t necessary. Any promise is already implicitly going to be asynchronous. The reason your code is running in parallel is because you’re setting up all three promises before you start awaiting any of them.
Actually the setTimeout in your example isn’t necessary. Any promise is already implicitly going to be asynchronous. The reason your code is running in parallel is because you’re setting up all three promises before you start awaiting any of them.
works for PayPal, as a lead engineer in Checkout. Opinions expressed herein belong to him and not his employer. daniel@bluesuncorp.co.uk
works for PayPal, as a lead engineer in Checkout. Opinions expressed herein belong to him and not his employer. daniel@bluesuncorp.co.uk