The microtask queue is a key part of the event loop in JavaScript. It came out in 2015 when Promises were added to the language. But what is it? What is for? How is it different from the standard callback queue that came with JavaScript when it was introduced? Should I care? We'll take a quick but decisive look at its purpose in this CS Thursday video. Hit subscribe and make sure to say on top of your computer science concepts!
Longer video on the event loop: • Making Sense Of The JavaScript Event ...
CS Thursday playlist: • Computer Science Thursdays
0:00 - Intro
0:38 - Example pseudo code
1:21 - JavaScript event loop basics
2:45 - The problem
3:59 - The promise (microtask) solution
5:40 - Advantages
Watch video Mastering Callback Priority in JavaScript Programming online without registration, duration hours minute second in high quality. This video was added by user Good Morning Developers 04 April 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 277 once and liked it 24 people.