LEVEL UP Your JavaScript game!!

preview_player
Показать описание

#programming #javascript #shorts

Music
Creative Commons / Attribution 3.0 Unported License (CC BY 3.0)
Рекомендации по теме
Комментарии
Автор

🚀 Exclusive DSA Course Vid - Click on Channel Page! 🚀

AlgoJS
Автор

What can you actually do with all this information?

nathanielrodriguez
Автор

this only works if the promises are io operations since those inherently run on multithreads (4 by default of libuv) but if this is just a made promise like a setTimeout it won't make a difference at all

moddeht
Автор

This is all true with 1 exception, if 1 promise fails don't they all fail.

njujfts
Автор

Promises are my biggest enemy and roadblocks right now 😢

end
Автор

Level up by learning a decent language and coming back to it 😮

maguilecutty
Автор

The thing is that Promise.all doesn't run all promises in parallel, but in a concurrent way. Everything still happening in a single thread.
It just makes sure that promise doesn't unnecessary wait for the previous ones to resolve.
So this is more like "why should I wait unnecessarily" solution, not something that really speeds up computation.

kasoivasoy