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: Support self.close inside node workers #21

Merged
merged 3 commits into from Nov 5, 2021

Conversation

phated
Copy link
Contributor

@phated phated commented Sep 29, 2021

This adds the self.close() function that is available in a Worker's global scope, as per https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/close

Copy link
Collaborator

@guybedford guybedford left a comment

Choose a reason for hiding this comment

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

Can we also include the related documentation change here as well? I see there's no real docs change to make here... NVM!

Seems good to me!

test/index.test.js Outdated Show resolved Hide resolved
Co-authored-by: Guy Bedford <guybedford@gmail.com>
test/index.test.js Outdated Show resolved Hide resolved
@phated
Copy link
Contributor Author

phated commented Sep 30, 2021

Thanks for the reviews @guybedford and @addaleax! Anything else I need to do to get this released?

@phated
Copy link
Contributor Author

phated commented Oct 7, 2021

@developit Anything else you need here?

@phated
Copy link
Contributor Author

phated commented Nov 4, 2021

@guybedford I noticed that you have publish permissions on npm. Can we get this merged and released?

@guybedford
Copy link
Collaborator

@phated it is up to @developit to manage the releases here, it would be out of the usual process for me to do that.

@developit developit merged commit 8280763 into developit:master Nov 5, 2021
@developit
Copy link
Owner

Apologies for the delay! This is now published as web-worker@1.2.0.

@phated
Copy link
Contributor Author

phated commented Nov 5, 2021

Thanks!!!

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

4 participants