The 'tip' from Cory House that you shared in this article is an anti pattern that should be avoided.
If the doSomething() and doSomethingElse() from your example both throw, you will get an unhandled exception warning - only the first exception will be caught. This can lead to hard-to-debug warnings.
Promise.all is the safe way to execute multiple async processes in parallel.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The 'tip' from Cory House that you shared in this article is an anti pattern that should be avoided.
If the
doSomething()
anddoSomethingElse()
from your example both throw, you will get an unhandled exception warning - only the first exception will be caught. This can lead to hard-to-debug warnings.Promise.all
is the safe way to execute multiple async processes in parallel.