Run in parallel mode without pains.
Perl
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/AlignDB
t
.gitignore
.travis.yml
Build.PL
Changes
LICENSE
META.json
README.md
cpanfile
minil.toml

README.md

Build Status Coverage Status MetaCPAN Release

NAME

AlignDB::Run - Run in parallel without pains.

SYNOPSIS

use AlignDB::Run;

my $worker = sub {
    my $job = shift;

    print "$job\n";
    return;
};

my $run = AlignDB::Run->new(
    parallel => 4,
    jobs     => [1 .. 8],
    code     => $worker,
    opt      => {foo => "bar",}
);
$run->run;

ATTRIBUTES

parallel - run in parallel mode

jobs - All jobs to be done

code - code ref

opt - hash ref

METHODS

run

Start run your code

AUTHOR

Qiang Wang <wang-q@outlook.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2009- by Qiang Wang.

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