When reading on The Callback Hell , I came across two different ways of calling a callback function in the exact same example linked above (last example in the linked section):
cb();
and then
setImmediate(cb);
for seemingly exactly the same thing. When do I use which of the two versions?