- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Build REST API with Node Express MongoDB - Event Loop and Event Queue #10
#node #async #queues #callbacks
Event Queue:
The event queue is a data structure that holds events and associated callback functions. In Node.js, events are generated when asynchronous operations complete, such as I/O operations or timer expirations. The event queue stores these events and ensures that their corresponding callbacks are executed in the correct order.
Callbacks:
Callbacks are functions that are passed as arguments to other functions and are invoked at a later time, usually when a specific event or condition occurs. In Node.js, callbacks are commonly used for handling asynchronous operations. For example, when performing a file read operation, a callback function can be provided to be executed once the file is read and the data is available.
Event Loop:
The event loop is a mechanism provided by Node.js that allows for non-blocking, asynchronous execution of JavaScript code. It is responsible for managing the event queue and executing the associated callbacks when events occur. The event loop follows a specific cycle of phases, as described in the previous response, to handle events, I/O operations, timers, and other tasks efficiently.
Contact us for development services:
https://www.linkedin.com/in/umair-jameel-24aa5368/
Видео Build REST API with Node Express MongoDB - Event Loop and Event Queue #10 канала Programming with Umair
Event Queue:
The event queue is a data structure that holds events and associated callback functions. In Node.js, events are generated when asynchronous operations complete, such as I/O operations or timer expirations. The event queue stores these events and ensures that their corresponding callbacks are executed in the correct order.
Callbacks:
Callbacks are functions that are passed as arguments to other functions and are invoked at a later time, usually when a specific event or condition occurs. In Node.js, callbacks are commonly used for handling asynchronous operations. For example, when performing a file read operation, a callback function can be provided to be executed once the file is read and the data is available.
Event Loop:
The event loop is a mechanism provided by Node.js that allows for non-blocking, asynchronous execution of JavaScript code. It is responsible for managing the event queue and executing the associated callbacks when events occur. The event loop follows a specific cycle of phases, as described in the previous response, to handle events, I/O operations, timers, and other tasks efficiently.
Contact us for development services:
https://www.linkedin.com/in/umair-jameel-24aa5368/
Видео Build REST API with Node Express MongoDB - Event Loop and Event Queue #10 канала Programming with Umair
event loop event queue callback non blocking asynchronous node I/O runtime server routes apis callbacks promises async await javascript asynchronous programming argv process env command line args command line arguments yargs express mongodb learn how to socket io rest apis http fs tutorial bootcamp crash course nodejs Build Apis MEAN MERN full stack web development create website
Комментарии отсутствуют
Информация о видео
23 июня 2023 г. 15:00:24
00:05:57
Другие видео канала




















