NAME

Parallel::Manager

VERSION

version 0.02

SYNOPSIS

use 5.018;
use Data::Printer;
use Parallel::Manager;

sub callback {
  my $name = shift;
  say qq{callback $name #times};
}

# handler and workers must defined, other attributes have default value;
my $pm = Parallel::Manager->new(handler => \&callback, workers => [1 .. 100], thread => 10, poll_interval => 0.2, wait_interval => 0.5);

# you can define some callback when $pm->run

$p->before_run(\&callback, "python");
$p->after_run(\&callback, "perl");
$p->before_job_run(\&callback, "php");
$p->after_job_run(\&callback, "ruby");

$pm->run;  # will callback 100 times async

# use DDP to see more info
p $pm;

SUPPORT

Bugs / Feature Requests

Please report any bugs or feature requests through the issue tracker at https://github.com/ciscolive/Parallel-Manager/issues. You will be notified automatically of any progress on your issue.

Source Code

This is open source software. The code repository is available for public review and contribution under the terms of the license.

https://github.com/ciscolive/Parallel-Manager

git clone git://github.com/ciscolive/Parallel-Manager.git

AUTHOR

WENWU YAN <careline@cpan.org>

CONTRIBUTOR

WENWU YAN <careline@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2022 by WENWU YAN.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.