@jaredhanson Is the use of process.nextTick() at db/users.js necessary?
It seems you have clarified the addition of nextTick on a stack overflow question.
https://stackoverflow.com/questions/20743348/passport-js-and-process-nexttick-in-strategy
Maybe we should add a comment stating the reason of usage.
A lot has changed regarding the execution of nextTick since Node v12. Should we shift to the use of setImmediate()(since nextTick gets executed immediately in the current phase itself of the event loop)?
PS: I am a beginner. I am pondering around to improve my knowledge on the subject. Cheers.
@jaredhanson Is the use of
process.nextTick()atdb/users.jsnecessary?It seems you have clarified the addition of nextTick on a stack overflow question.
https://stackoverflow.com/questions/20743348/passport-js-and-process-nexttick-in-strategy
Maybe we should add a comment stating the reason of usage.
A lot has changed regarding the execution of nextTick since Node v12. Should we shift to the use of setImmediate()(since nextTick gets executed immediately in the current phase itself of the event loop)?
PS: I am a beginner. I am pondering around to improve my knowledge on the subject. Cheers.