-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Support for worker_threads #901
Comments
Bun needs to do this I think it'd be good for |
Looking forward to supporting bun in https://github.com/asilvas/ram64 ! |
Also looking forward to support for this! |
I suggest you impl real spec'ed web worker instead and not NodeJS specific worker. it's better to be cross-platform compatible instead. |
I agree, we are currently in a mess, I hope we all will write 1 language on the server one day and JS Server APIs are one to one the same in all runtimes. |
A small update We haven't added Bun will support Note that we still haven't landed support for resolving |
When the CI for this PR finishes, you'll be able to try it out using |
Can confirm canary is working. 🙏 ➜ vote git:(main) ✗ bun run test
$ vitest run --coverage
[0.06ms] ".env"
SyntaxError: Import named 'receiveMessageOnPort' not found in module 'node:worker_threads'.
➜ vote git:(main) ✗ bun upgrade --canary
[5.93s] Upgraded.
Welcome to bun's latest canary build!
Report any bugs:
https://github.com/oven-sh/bun/issues
Changelog:
https://github.com/oven-sh/bun/compare/53cc4df191aa823c3a5c5a2a377701439a2d3f89...main
➜ vote git:(main) ✗ bun run test
$ vitest run --coverage
[0.04ms] ".env"
SyntaxError: Import named 'Console' not found in module 'node:console'.
error: script "test" exited with code 1 (SIGHUP) |
What is the problem this feature will solve?
Some heavy server-side applications rely on multithreading. We run a couple of these in our company. I wanted to see if bun is a viable alternative to Node, but it seems bun doesn't support worker_threads (yet).
What is the feature you are proposing to solve the problem?
I would like to see support for the
worker_threads
module in bun.What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: