Async-Simple-Pool

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

      "directory" : [
         "t",
         "inc"
      ]
   },
   "prereqs" : {
      "build" : {
         "requires" : {
            "File::Spec" : "0",
            "JSON::XS" : "0",
            "Modern::Perl" : "0",
            "Module::Metadata" : "1.000009",
            "POSIX" : "0",
            "Pod::Coverage" : "0",
            "Test::CheckManifest" : "0",
            "Test::Exception" : "0",
            "Test::More" : "0",
            "Test::Pod" : "0",
            "Test::Pod::Coverage" : "0",
            "Test::Spec" : "0",
            "Time::HiRes" : "0"
         }
      },
      "configure" : {
         "requires" : {
            "ExtUtils::MakeMaker" : "0",
            "Modern::Perl" : "0"
         }
      },
      "runtime" : {
         "requires" : {
            "Class::Load" : "0",
            "Clone" : "0",
            "Data::Dumper" : "0",
            "Data::Serializer" : "0",
            "File::Spec" : "0",
            "JSON::XS" : "0",
            "Modern::Perl" : "0",
            "Moose" : "0",
            "Time::HiRes" : "0",
            "namespace::autoclean" : "0",
            "perl" : "5.014000"
         }
      }
   },
   "provides" : {
      "Async::Simple::Pool" : {
         "file" : "lib/Async/Simple/Pool.pm",

META.yml  view on Meta::CPAN

---
abstract: 'Simple manager of asyncronous tasks'
author:
  - 'ANTONC <antonc@cpan.org>'
build_requires:
  File::Spec: '0'
  JSON::XS: '0'
  Modern::Perl: '0'
  Module::Metadata: '1.000009'
  POSIX: '0'
  Pod::Coverage: '0'
  Test::CheckManifest: '0'
  Test::Exception: '0'
  Test::More: '0'
  Test::Pod: '0'
  Test::Pod::Coverage: '0'
  Test::Spec: '0'
  Time::HiRes: '0'
configure_requires:
  ExtUtils::MakeMaker: '0'
  Modern::Perl: '0'
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 7.0401, CPAN::Meta::Converter version 2.150005'
license: artistic_2
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: '1.4'
name: Async-Simple-Pool
no_index:
  directory:
    - t

lib/Async/Simple/Pool.pm  view on Meta::CPAN


=cut


# Async::Queue, Anyevent::FIFO - very similar to this, but have no enough sugar, has Anyevent dependence, has no prefork and fixed pool
# Task::Pool - wery similar, uses tasks, results represented as a spream
# Task::Queue - low level code
# Proc::Simple - wery similar byt not flexible enough


use Modern::Perl;
use Moose;
use namespace::autoclean;
use Class::Load;
use Clone;
use JSON::XS;

our $VERSION = '0.18';

=head2 data

lib/Async/Simple/Task.pm  view on Meta::CPAN


    This program is free software; you can redistribute it and/or modify it
    under the terms of the the Artistic License (2.0). You may obtain a
    copy of the full license at:

    L<http://www.perlfoundation.org/artistic_license_2_0>

=cut


use Modern::Perl;
use Moose;
use namespace::autoclean;

our $VERSION = '0.18';


=head1 Attributes

=head2 get

lib/Async/Simple/Task/Fork.pm  view on Meta::CPAN


    This program is free software; you can redistribute it and/or modify it
    under the terms of the the Artistic License (2.0). You may obtain a
    copy of the full license at:

    L<http://www.perlfoundation.org/artistic_license_2_0>

=cut


use Modern::Perl;
use Moose;
use namespace::autoclean;
use Data::Serializer;
use Time::HiRes qw/ alarm sleep /;




our $VERSION = '0.18';

lib/Async/Simple/Task/ForkTmpFile.pm  view on Meta::CPAN


    This program is free software; you can redistribute it and/or modify it
    under the terms of the the Artistic License (2.0). You may obtain a
    copy of the full license at:

    L<http://www.perlfoundation.org/artistic_license_2_0>

=cut


use Modern::Perl;
use Moose;
use namespace::autoclean;
use Data::Serializer;
use Time::HiRes qw/ alarm sleep /;
use File::Spec;

our $VERSION = '0.18';

extends 'Async::Simple::Task::Fork';

t/04-task.t  view on Meta::CPAN

#!perl -T

use Modern::Perl;
use POSIX;
use Test::Spec;
use Test::Exception;
use Time::HiRes qw/ sleep /;

plan tests => 6;

# use lib '.';

use Async::Simple::Task;

t/05-task-fork.t  view on Meta::CPAN

#!perl -T

use Modern::Perl;
use POSIX;
use Test::Spec;
use Test::Exception;
use Time::HiRes qw/ sleep /;

# use lib '../lib';

use Async::Simple::Task::Fork;

if ( $^O =~ /^(dos|os2|MSWin32|NetWare)$/ ) {

t/06-task-forktmpfile.t  view on Meta::CPAN

#!perl -T

use Modern::Perl;
use POSIX;
use Test::Spec;
use Test::Exception;
use Time::HiRes qw/ sleep /;

plan tests => 21;

# use lib '../lib';

use Async::Simple::Task::ForkTmpFile;

t/07-pool-inits.t  view on Meta::CPAN

#!perl -T

use Modern::Perl;
use POSIX;
use Test::Spec;
use Test::Exception;
use Time::HiRes qw/ sleep time /;

plan tests => 37;

my $dev_mode = 0;

# use lib '../lib';

t/08-pool-full-results.t  view on Meta::CPAN

#!perl -T

use Modern::Perl;
use POSIX;
use Test::Spec;
use Test::Exception;
use Time::HiRes qw/ sleep time /;

plan tests => 9;

my $dev_mode = 0;

# use lib '../lib';

t/09-pool-partial-results-collect.t  view on Meta::CPAN

#!perl -T

use Modern::Perl;
use POSIX;
use Test::Spec;
use Test::Exception;
use Time::HiRes qw/ sleep time /;

plan tests => 11;

my $dev_mode = 0;

# use lib '../lib';

t/10-pool-partial-results-flush.t  view on Meta::CPAN

#!perl -T

use Modern::Perl;
use POSIX;
use Test::Spec;
use Test::Exception;
use Time::HiRes qw/ sleep time /;

plan tests => 18;

my $dev_mode = 0;

# use lib '../lib';

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 2.930 seconds using v1.00-cache-2.02-grep-82fe00e-cpan-d29e8ade9f55 )