Skip to content

Use settimeout unref conditionally - #1

Open
aguynamedben wants to merge 9 commits into
masterfrom
use_settimeout_unref_conditionally
Open

aguynamedben wants to merge 9 commits into
masterfrom
use_settimeout_unref_conditionally

Conversation

@aguynamedben

@aguynamedben aguynamedben commented Jul 18, 2020

Copy link
Copy Markdown

Bring the PR from dbader#44

No need to merge, we'll just point to this branch.

This is needed because node-datadog-metrics uses setTimeout without importing it from the node 'timers' module. Electron assumes we want the browser setTimeout. node-datadog-metrics then calls timout.unref(), which is available in the Node setTimeout, but not the browser setTimeout.

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.

3 participants