josdejong/workerpool

Support workerData as a pool option for worker threads?

Open

#65 aperta il 16 apr 2019

Vedi su GitHub
 (10 commenti) (12 reazioni) (0 assegnatari)JavaScript (164 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (2297 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor