Does it make sense to say process.nextTick can somewhat help preventing stack overflow ? I mean if we are sure we don't want the code to be executed immediately
Yes ! I placed stack overflow in a question !
Does it make sense to say process.nextTick can somewhat help preventing stack overflow ? I mean if we are sure we don't want the code to be executed immediately
Yes ! I placed stack overflow in a question !
No, you definitely can't say that. For example:
(function stuff () {
process.nextTick(stuff)
}())
will lead to RangeError: Maximum call stack size exceeded
.