If you want to run them in parallel - you're going with Promise.all
Absolutely, if it's a habit you've developed as a developer. The point of this article being to help some beginners catch these sections that could be helped with something like Promise.all.
The example with initBooking is my abstract way of showing a bad use of a single awaited method.
Agree, Christopher, thanks for the work. Actually benchmarks are awesome!
Just the title "dangers" makes it quite judging without actual arguments :)
P.S. You know how to make clickbait titles
Absolutely, if it's a habit you've developed as a developer. The point of this article being to help some beginners catch these sections that could be helped with something like
Promise.all.The example with
initBookingis my abstract way of showing a bad use of a single awaited method.Agree, Christopher, thanks for the work. Actually benchmarks are awesome!
Just the title "dangers" makes it quite judging without actual arguments :)
P.S. You know how to make clickbait titles
I love to spook my readers first and then relieve them when they understand that it's not that big of a deal haha.
Maybe the word side-effect would have been more interesting in this case. As in the side-effect of over-using this feature.