andywer / andywer/threads.js

feature request: support "pinning" tasks to workers

Open
#480 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.5k
Forks
173
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.