issues
search
wilk
/
microjob
A tiny wrapper for turning Node.js worker threads into easy-to-use routines for heavy CPU loads.
https://wilk.github.io/microjob/
MIT License
2.02k
stars
47
forks
source link
Add ability to manage individual workers, eg. killing a specific worker
#41
Closed
manuel-di-iorio
closed
5 years ago
manuel-di-iorio
commented
5 years ago
Changes:
feat(workers) expose property for direct usage. Useful when dealing with manual kill.
feat(kill) Add function to directly terminate a specific worker.
fix(tick) Recover from an internal postMessage error. This may happen e.g. when a worker is unexpectedly terminated due to an internal error.
feat(job) Add a 'props' object in the job() config argument. This object allows to store arbitrary data into the workers wrappers.
Changes: