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

feat(ext/node): ref/unref on workers #22778

Merged
merged 3 commits into from Mar 8, 2024
Merged

Conversation

mmastrac
Copy link
Member

@mmastrac mmastrac commented Mar 7, 2024

Implements ref/unref on worker to fix part of #22629

Madness38

This comment was marked as spam.

@mmastrac mmastrac changed the title feat(ext/node): ref/unref on workers [WIP] feat(ext/node): ref/unref on workers Mar 7, 2024
runtime/js/11_workers.js Outdated Show resolved Hide resolved
@@ -128,6 +141,30 @@ class Worker extends EventTarget {
this.#pollMessages();
}

[privateWorkerRef](ref) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could make this property non-enumerable?

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as it's already a massive improvement

@mmastrac mmastrac merged commit 3745556 into denoland:main Mar 8, 2024
17 checks passed
littledivy pushed a commit that referenced this pull request Mar 8, 2024
Implements ref/unref on worker to fix part of #22629
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.

None yet

3 participants