Parallel::Async - run parallel task with fork to simple.
use Parallel::Async;
my $task = async {
print "[$$] start!!\n";
my $msg = "this is run result of pid:$$."; # MSG
return $msg;
};
my $msg = $task->recv;
say $msg; # same as MSG
Parallel::Async is yet another fork tool. Run parallel task with fork to simple.
See also Parallel::Async::Task for more usage.
Parallel::ForkManager Parallel::Prefork
Copyright (C) karupanerura.
This library is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
karupanerura <karupa@cpan.org>