#29 NODE JS Event Loop in Practice | Fundamentals of NODE JS | A Complete NODE JS Course

preview_player
Показать описание
In the last lecture, we learned about event loop in NODE JS in theory. In this lecture you will learn about the concepts which we learned about event loop in practice.
Рекомендации по теме
Комментарии
Автор

haven't seen someone teaching so clearly in my entire clg life

hardikarora
Автор

This guy is amazing ! Never keeps a black hole In any of his videos !

Ansha-xquy
Автор

Your node.js series is awesome sir. The way u explain is the best among all other YouTube channels 👏🏻🙇🏻‍♂️

yashkankal
Автор

I Have Never Find Someone Explaining The Node.js Like You, You Are Amazing For Sure..!

qatadd
Автор

wow ! what the lecture it is? the most beautiful thing is the educator does not have any hurry and he explain each and every point very calmly .

stljfse
Автор

Your series is outstanding. The way you're explaining how things works behind the scene is awesone 🥰 Love it 🥰

muhammadayyaz
Автор

Very clear Explanation, thank you.
Started binge watching this playlist. It's awesome.
Your articulation and presentation is too good.

mukeshmahadev
Автор

You are champ❣️
Keep it up bro
Lots of love from delhi/ncr

yogyapundir
Автор

these lectures are really helpful sir, thank you!!

pirobanda
Автор

Very well explained, amazing job! Thank you!

eduardcojocaru
Автор

thanks you sir. You teached very clearly and explain so well.

ufqlitq
Автор

Thank you very much for the great explanation

LasithaYapabandara
Автор

I have a doubt at 23:31. When the event loop is in 2nd phase and reaches setImmediate, instantly its callback will be pushed to the callback queue. At this loint event loop doesnt know whats ahead of it. It doesnt know process.nextTick is the next line. Why event loop doesnt execute 3rd phase callback even though event loop is in 3rd phase and the stack is empty ?

vivekkoul
Автор

Guru ji, app insaan nhi, "Maha purush"

ashishyadav-tupd
Автор

thanks for the explanation sir but I have a question
setTimeout(() => {
setTimeout(() => {
console.log('nested settimeout finishes');
}, 0);
setImmediate(() => console.log('Immediate 1 finishes'));
}, 0);

why setImmediate() here gets called before the inner setTimeout()
shouldn't the inner setTimeout gets executed before the setImmediate here
because the event loop starts in the timer phase and executes the outer setTimeout then adds the inner setTimeout to the timer phase queue which the event loop is still currently at and then add the setImmediate callback to the third phase

now the event loop is still at the timer phase why the inner setTimeout callback is not executed first before the setImmediate callback that is in the third phase

youssefhammam
Автор

22:02 that means event loop phases can have nested event loop as well if our program needs if code have call backs in call backs. i think thats the reason call back hell is bad. am i right?

AnimeBoyYT
Автор

You should be a lecturer by default. I didn't watch it twice before understanding the concept.

bolooemmanuel