Question: how to specify concurrency
freekmurze opened this issue · 1 comments
freekmurze commented
This seems like a very nice package, thank you!
Will this work on array with for instance 1 000 000 elements? Is there a way to specify the maximum concurrent processes?
kelunik commented
Currently this library uses the default process pool of amphp/parallel
, which can be set using Amp\Parallel\Worker\pool()
. The default maximum is 32 workers.
I already thought about adding an optional parameter to parallel()
that allows passing a custom pool, but decided to wait until there's a need.
Hope this answers your questions! If not, feel free to respond or create new issues for new questions. 👍