threads.js icon indicating copy to clipboard operation
threads.js copied to clipboard

Force to use tiny-worker on latest node.js

Open SonahtQ opened this issue 3 years ago • 2 comments

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.

SonahtQ avatar Apr 01 '22 07:04 SonahtQ

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 avatar Apr 13 '22 05:04 flux627

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

flux627 avatar Apr 13 '22 05:04 flux627