Перейти к основному содержанию
Zoro
Вопросы
Таймер
Резервное копирование
Главная
/
🟢 Node.js
/
Вопросы 23
Node.js:
What is the difference between nextTick and setImmediate?
🎯
Режим фокуса
23
🟢
Node.js
🌱 junior
Снять отметку
What is the difference between nextTick and setImmediate?
nextTick
— before loop.
setImmediate
— in loop.
javascript
Копировать
1
process
.
nextTick
(
(
)
=>
{
}
)
;
2
setImmediate
(
(
)
=>
{
}
)
;
nextTick
— higher priority.
Больше вопросов по Node.js
What is Node.js and what is it used for?
What is the event loop in Node.js?
What is the difference between process.nextTick() and setImmediate() in Node.js?
What is the difference between setTimeout() and setInterval() in Node.js?
What is the difference between callback and promise in Node.js?
What is the event loop?
What is the difference between setTimeout and setInterval?
Назад к категории Node.js