in reply to Re^2: Parallel::ForkManager How to wait when 1st 10 Child processe are over out of 100
in thread Parallel::ForkManager How to wait when 1st 10 Child processe are over out of 100
Ah, I see. Then something like this may help (not tested):
$pm->run_on_finish( sub { state $counter; start_next_10_processes() unless ++$counter % 10; } );
|
|---|