2 ms·
You are looking for setImmediate[1]. EDIT: Oh, never knew that this method was a Node-ism only. [1] https://developer.mozilla.org/en-US/docs/Web/API/Window/se
by xrstf 11y ago
You are looking for setImmediate[1].
EDIT: Oh, never knew that this method was a Node-ism only.
[1] https://developer.mozilla.org/en-US/docs/Web/API/Window/setImmediate https://developer.mozilla.org/en-US/docs/Web/API/Window/setI...
- nailer 11y agoActually 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.