2 ms·
Actually it's common enough that var setNextTick = function(nextTickFunction){window.setTimeout(nextTickFunction), 0}) ...sounds like a damn good idea.
by nailer 12y ago
Actually it's common enough that
var setNextTick = function(nextTickFunction){window.setTimeout(nextTickFunction), 0})
...sounds like a damn good idea.
Hate the name 'setImmediate' though, immediate implies the current tick and people would wonder why you're using it.