latentflip / loupe

Visualizing the javascript runtime at runtime
http://latentflip.com/loupe
3.21k stars 504 forks source link

setImmediate support? #4

Open qfox opened 9 years ago

qfox commented 9 years ago

Sub tasks? Etc.?

jweinsteincbt commented 7 years ago

setImmediate is used in nodejs, but support in browsers is not so strong. You can shim it easily:

if (typeof setImmediate === "undefined") var setImmediate = function setImmediate (fn) {
    return setTimeout(fn, 0);
};