Process.nextTick 和 setImmediate 的区别?
作者:知乎用户
链接:https://www.zhihu.com/question/23028843/answer/34597367
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

------------------------------------------------------------------------

------------------------------------------------------------------------
链接:https://www.zhihu.com/question/23028843/answer/34597367
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
A();
B();
C();

------------------------------------------------------------------------
A();
process.nextTick(B);
C();

------------------------------------------------------------------------
A();
setImmediate(B);
C();

漫思