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

fix: Leverage new web-worker dep to close workers cross-platform #21

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

phated
Copy link
Contributor

@phated phated commented Nov 5, 2021

I was digging into the usage of process.exit() to close the worker and found that it only works inside nodejs. However, the WebWorker spec provides requires a self.close() in a Worker's global scope (docs at https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/close)

So I upstreamed a fix to the web-worker dependency at developit/web-worker#21 and now we can use a cross-platform self.close() to terminate the workers!

@jbaylina jbaylina merged commit fc31d7d into iden3:master Nov 17, 2021
@phated phated deleted the phated/webworker-close branch November 17, 2021 23:21
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

2 participants