andywer / andywer/threads.js

Access Worker instance from Thread Pool once task is running?

Aperta
#455 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
3.5k
Fork
173
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I'm using Module Workers to run a number of complex tasks. These send back data while they are running via Observables. This works fine so far.

Now I'd like to have a pool of these Module Workers running. The issue is, using pool.queue() will not give me access to the worker that the task has been assigned to, thus I also can't subscribe to the Observables of that Worker. Is there a way to get the worker instance within the pool that my task is being assigned to?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.