andywer / andywer/threads.js

Access Worker instance from Thread Pool once task is running?

Offen
#455 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
3.5k
Forks
173
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.