-
Notifications
You must be signed in to change notification settings - Fork 7
Expose the setImmediate
polyfill so that libraries can use it directly
#37
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
Conversation
Thanks for the PR! I think simply |
Yeah, on one hand I'd like to avoid any overhead, on another using |
Is it? I think that people familiar with Node are likely to know what it is but I think it is a weird name. I'd believe |
Yes, it is. More people in the world know what What's the big deal with making this public? |
The original goals of this library were to be a drop-in replacement for the global If we were to expose the "raw"
These changes would increase our API surface area quite a bit based on something which is not standardized and, since this is a polyfill and not a facade, binary-compatibility is a concern. This may or may not be a big deal. IMHO if we were to move forward with this, I'd like to see (1)-(3) done. But someone with more experience should weigh in. |
FYI I just proposed that we add a facade for
|
As mentioned earlier in #37 (comment), exposing This library is only about providing an |
So just do it. APIs break. That's why we have versioning strategies. |
I have a bunch of
setTimeout(..., 0)
calls in scalajs-react and I'd like to replace them using thissetImmediate
polyfill.