andywer / threads.js

🧵 Make web workers & worker threads as simple as a function call.
https://threads.js.org/
MIT License
3.06k stars 163 forks source link

Deno support? #485

Open taoeffect opened 10 months ago

taoeffect commented 10 months ago

Hi, I'm curious, I see that this project supports Node.js, but does it also work well with Deno?

If not, is Deno support planned?

alexgleason commented 10 months ago

@taoeffect I had to modify it to make it work. It incorrectly uses the Node.js implementation for Deno, when it should use the Browser implementation. I'm going to fork this project.

alexgleason commented 10 months ago

I have a version that works on Deno by importing 'npm:@soapbox.pub/threads@^1.7.5'

Source code is here: https://gitlab.com/soapbox-pub/threads.js

taoeffect commented 10 months ago

Awesome! Thanks for sharing @alexgleason! 😄

Maybe they'll consider incorporating your changes too. Thanks again!