File Coverage

blib/lib/Process/Async.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             package Process::Async;
2             # ABSTRACT: wrapper for using an IO::Async loop inside an IO::Async subprocess
3 1     1   708 use strict;
  1         2  
  1         48  
4 1     1   6 use warnings;
  1         2  
  1         53  
5              
6             our $VERSION = '0.003';
7              
8             =head1 NAME
9              
10             Process::Async - nested loop-using process support
11              
12             =head1 VERSION
13              
14             version 0.003
15              
16             =head1 SYNOPSIS
17              
18             use Process::Async;
19             use IO::Async::Loop;
20            
21             my $loop = IO::Async::Loop->new;
22             $loop->add(
23             my $pm = Process::Async::Manager->new(
24             worker => 'Demo::Worker',
25             child => 'Demo::Child',
26             )
27             );
28             my $child = $pm->spawn;
29             $child->finished->get;
30              
31             =head1 DESCRIPTION
32              
33             Provides a thin wrapper around L. See the examples
34             directory.
35              
36             =head1 METHODS
37              
38             =cut
39              
40 1     1   327 use Process::Async::Manager;
  1         1  
  1         22  
41 1     1   5 use Process::Async::Child;
  1         1  
  1         17  
42 1     1   3 use Process::Async::Worker;
  1         1  
  1         17  
43              
44             1;
45              
46             __END__