andywer / andywer/threads.js

feature request: support "pinning" tasks to workers

Aperta
#480 0 commenti 0 reazioni 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

When workers are spawned, allow specifying a "key" (string) for each. When tasks are queued, accept a zero arity function returning a key. If the key returned matches any of the keys supplied when the workers were spawned, ensure that the task is scheduled on the matching worker.

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.