A(); B(); C(); A(); process.nextTick(B); C(); A(); setImmediate(B); C(); ref:Process.nextTick 和 setImmediate 的区别? - 黑暗二叉树的回答 - 知乎