Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setImmediate support? #4

Open
qfox opened this issue Apr 27, 2015 · 1 comment
Open

setImmediate support? #4

qfox opened this issue Apr 27, 2015 · 1 comment

Comments

@qfox
Copy link

qfox commented Apr 27, 2015

Sub tasks? Etc.?

@jweinsteincbt
Copy link

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);
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants