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>
To install Parallel::Async, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parallel::Async
CPAN shell
perl -MCPAN -e shell install Parallel::Async
For more information on module installation, please visit the detailed CPAN module installation guide.