-
Notifications
You must be signed in to change notification settings - Fork 54
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
Conversation
There was a problem hiding this 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!
Co-authored-by: Guy Bedford <guybedford@gmail.com>
Thanks for the reviews @guybedford and @addaleax! Anything else I need to do to get this released? |
@developit Anything else you need here? |
@guybedford I noticed that you have publish permissions on npm. Can we get this merged and released? |
@phated it is up to @developit to manage the releases here, it would be out of the usual process for me to do that. |
Apologies for the delay! This is now published as web-worker@1.2.0. |
Thanks!!! |
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