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

ability to disable the process hooks added by #150

Open scottbessler opened this issue 2 years ago • 1 comments

I have my own graceful shutdown functionality, so would need to disable this functionality so I can control when process.exit is called as I have more to do than clean up worker threads.

At the very least, it would be useful to be able to disable this functionality. I do think its bad for a library to add calls to process.exit in general, and would encourage you to remove it entirely.

scottbessler avatar Nov 09 '23 00:11 scottbessler

I "fixed" this locally via patch-package.

panta82 avatar Jan 29 '24 21:01 panta82