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

fastTimeout conditional export #5

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

jgonggrijp
Copy link
Contributor

I investigated #2 and found out that the tests were alright; it was indeed our own fastTimeout being tested and not the setImmediate fallback. Nevertheless, I changed the order of preference so that when both postMessage and setImmediate are available, the former is used. I also added a graceful degradation by employing plain old setTimeout when neither is available.

@jgonggrijp jgonggrijp requested a review from Meesch December 10, 2024 14:46
@jgonggrijp jgonggrijp linked an issue Dec 10, 2024 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

fastTimeout tests might actually run setImmediate under the hood
1 participant