-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
feat: support runtime
option
#65
Conversation
This is still very much work-in-progress. Running code in |
151ebb5
to
5d98c2e
Compare
runtime
optionruntime
option
6b598a5
to
3f17746
Compare
you can add Lerna-Lite to the list of project that requires the use of |
Yes, this PR would allow Vitest to use multiple
I won't promise anything but hopefully yes. This might introduce breaking changes, e.g. refactoring the |
That would be great, thanks for all the info, great job on all the work you do on Vitest and all other indirect projects 😉 |
252e642
to
07bc5cd
Compare
07bc5cd
to
d1b8c9b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me! Thank you for your hard work 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left open source for a while, but this was a refreshing PR! Thank you so much
child_process
runtime #64TinypoolWorker
node:worker_threads
worker toruntime/thread-worker.ts
- backwards compatibleruntime
option for pool constructorTinypoolWorker
which runs onnode:child_process
,runtime/process-worker.ts
. This is used whenruntime: 'child_process'
pool option is used.channel
option forpool.run()
method. This is used to pass callback for main thread/process <-> worker communication. This option is not supported byThreadWorker
.runtime
option forpool.recycleWorkers
. This can be used to recycle current workers and change the runtime of next set of workers.new TinyPool({ runtime: 'child_process' })
pool.recycleWorkers({ runtime: 'child_process' })
MessagePort
- maybe introduce newrun()
option for this ->channel
option created