You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The whole point of the solution was to make clear the synchronous behavior of Promise.all
Abstracting the multiple call by wrapping in a custom function doesn't serve the purpose
@ayhtrak in what way is the official solution making clear that Promise.all is synchronous?? The current solution as well as this proposed solutions both do two sequentially calls to .then; the only difference is that this solution has the function passed to .then declared before both calls..
If you really want to show the synchronous behavior, the solution should go like
It is possible to write an inner function to handle the otherwise duplicate code in promise handlers, i.e.
The text was updated successfully, but these errors were encountered: