A small shim for the setImmediate() that creates a callback similar to process.nextTick() on node.js