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

Use node timers for interval #46

Merged
merged 1 commit into from
Dec 24, 2019
Merged

Conversation

Rastopyr
Copy link
Contributor

Problem

Not all node environments support setTimeout with unref by default. For example jest env default or electron renderer with node integration by default use timeout from window(without unref).

Solution

Explicit import timers with unref.

@Rastopyr Rastopyr changed the title Use not timers for interval Use node timers for interval Dec 20, 2019
@iccicci iccicci merged commit 1eda87a into iccicci:master Dec 24, 2019
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.

2 participants