Federico Zivolo

Results 282 comments of Federico Zivolo

Don't close this issue. This is an automatic message by [Fresh](https://github.com/c-hive/fresh) - a bot against stale bots.

Don't close this issue. This is an automatic message by [Fresh](https://github.com/c-hive/fresh) - a bot against stale bots.

Don't close this issue. This is an automatic message by [Fresh](https://github.com/c-hive/fresh) - a bot against stale bots.

Don't close this issue. This is an automatic message by [Fresh](https://github.com/c-hive/fresh) - a bot against stale bots.

Don't close this issue. This is an automatic message by [Fresh](https://github.com/c-hive/fresh) - a bot against stale bots.

Thanks Marcus, but that's the index on the original users array, I'm looking for the id or index of the "worker" that is processing the data. So, let's say the...

I understand, but the whole point of the library is to limit the number of promises being evaluated at the same time, right? I then need to know, of the...

It's what I explained in the original post, I have a pre-allocated number of web workers and I want each thread to use one of them. Without the information I'm...

I think what you call them in the source code is tasks, I need the task index. https://github.com/supercharge/promise-pool/blob/main/src/promise-pool-executor.ts#L300-L314 This would become something like this: ```diff startProcessing (item: T, index: number):...

Yes my example doesn't work, but you could return the indexOf the task, or just pre-allocate an array with N positions, one for each task, then set them to null...