josdejong/workerpool
Support workerData as a pool option for worker threads?
Open
#65 opened on Apr 16, 2019
enhancementhelp wanted
Repository metrics
- Stars
- (2,307 stars)
- PR merge metrics
- (Avg merge 21d 16h) (3 merged PRs in 30d)
Description
It would be cool to have a way to make general data available on worker initialization instead of just through worker function parameters. I can submit a PR.
Ref: https://nodejs.org/api/worker_threads.html#worker_threads_worker_workerdata