-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
I'm running the following code where my functions need to pick a web worker from a list in order to run.
const workersList = [worker1, worker2];
await PromisePoool
.withConcurrency(workerList.length)
.for(items)
.process(async (item) => {
const worker = workerList[executorIndex];
await runMyLogic(item, worker);
});Right now I can't seem to find any way to know which executor is being used from the pool, may you advise?
Metadata
Metadata
Assignees
Labels
No labels