This is exactly what I need for my project. Javascript is hard when I do it, but simple in your videos.
@AllThingsJavaScript3 жыл бұрын
Great to hear!
@michaelbeckett81963 жыл бұрын
i guess I'm kind of off topic but do anybody know a good place to watch newly released series online?
@darianahmed14013 жыл бұрын
@Michael Beckett Flixportal :P
@michaelbeckett81963 жыл бұрын
@Darian Ahmed Thanks, I went there and it seems like they got a lot of movies there :) I really appreciate it !
@darianahmed14013 жыл бұрын
@Michael Beckett no problem xD
@kusholh70952 жыл бұрын
Perfectly explained. Simple, clear, concise. Thanks so much!
@AllThingsJavaScript2 жыл бұрын
Glad it was helpful!
@themysteryman-e2j3 жыл бұрын
Great tutorial. Saved me lot of time
@AllThingsJavaScript3 жыл бұрын
Great to hear!
@someoneoutthere18663 жыл бұрын
Great video, thanks for recommending that playlist
@zhasan663 жыл бұрын
Really a wonderful video tutorial.
@simple88103 жыл бұрын
I liked the way how you explained it when using Promise.all or one bye one,It helped me a lot Thanks
@AllThingsJavaScript3 жыл бұрын
You are welcome!
@boonchanal10 ай бұрын
Thanks
@mzamomahaeng2683 жыл бұрын
Something to work with, it did not solve my problem but the understanding is good , thanks.
@miraclesdohappen23523 жыл бұрын
would it not be nice if to use map method and destructure results with Promise.all...in this case the array can be dynamic and flexible..great explanation and good work:-)
@themysteryman-e2j3 жыл бұрын
I have some doubt I don't know whether this is a silly question to ask. Somebody, please clear this to me for example, this is one of the functions in my code async function ex () { let i = 1; while (i >0){ console.log("....No end...."); } } Since JS is single-threaded only one task will execute at a time. How this snippet will execute internally? I read All the async tasks are sent to the call back queue. So is this function also sent to the call back queue? (Since I wrap it in an async) , or it won't. Q2. NodeJS I have another doubt also In node js, I read that all heavy jobs are sent to the libuv instead of v8. so libuv create a separate thread pool for executing those tasks. In that case, let's say libuv created four threads and let this function execute in one thread. Since it is an infinite loop that one thread will get blocked. Then the remaining tasks after that function will execute or not?
@AllThingsJavaScript3 жыл бұрын
The async function is a pattern for working with asynchronous tasks. It doesn't force plain JavaScript code to be asynchronous. All JavaScript is executed single threaded. Those things that are asynchronous are timers, events, fetch etc. Callbacks from those are added to the callback queue and handled by the event loop. As per my understanding libuv handles timers, non-blocking networking, files system access etc. So once again, regular JavaScript is handled by the JavaScript engine which is single threaded.
@themysteryman-e2j3 жыл бұрын
@@AllThingsJavaScript Thank you so so much for clarifying me.
@haroondeveloper Жыл бұрын
done sir
@AllThingsJavaScript3 жыл бұрын
Discount on Asynchronous JavaScript Deep Dive course: www.udemy.com/course/asynchronous-javascript-deep-dive/?couponCode=ATJSNOV20 Playlist on asynchronous JavaScript and promises: kzbin.info/aero/PLTo9PCskHpbHIDnzl8tRYldSCSQaFgAHd
@yoapps1373 жыл бұрын
You really explained it perfectly! May I suggest something that is really conflicting in Js asynchronous code... When you have to perform the same todos, comments & posts inside every iteration of a forEach loop. How would you suggest to do a Promise.all in that scenario?
@AllThingsJavaScript3 жыл бұрын
If you are using forEach, store the promises in an array and then once done with forEach, put the array in Promise.all.