Skip to content

Force to use tiny-worker on latest node.js #422

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

Open
SonahtQ opened this issue Apr 1, 2022 · 2 comments
Open

Force to use tiny-worker on latest node.js #422

SonahtQ opened this issue Apr 1, 2022 · 2 comments

Comments

@SonahtQ
Copy link

SonahtQ commented Apr 1, 2022

Is it possible to force threads.js to use tiny-worker even on latests versions of node.js?
The reason is that in worker_threads still not works everything. For example You can't use canvas (node-canvas) in worker_thread. As far as I know tiny-worker uses child_processes as core mechanism so canvas then should works.

@flux627
Copy link

flux627 commented Apr 13, 2022

Would love this. Currently I'm being forced to downgrade my Node version to 10.24.1, which means I need to use ESM to run my code. Kind of a mess. Unfortunately still nicer than rolling my own.

Would also love to be able to remove the Node worker_threads not available. Trying to fall back to tiny-worker polyfill... warning.

@flux627
Copy link

flux627 commented Apr 13, 2022

This PR was made to enable this feature, but it stalled: #290

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

No branches or pull requests

2 participants