Promise.resolve().then vs setImmediate vs nextTick
Using Promise.resolve().then has no advantages over nextTick. It runs on the same queue, but have slightly higher priority, that is, promise handler can prevent next tick callback from ever running, the opposite is not possible. This behaviour is an implementation detail and should not be relied on. Promise.resolve().then is obviously slower (a lot, I think), … Read more