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
Смотрите видео Mastering Callback Priority in JavaScript Programming онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Good Morning Developers 04 Апрель 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 277 раз и оно понравилось 24 людям.