Subprocess/Running/Delegate/CompletionCondvar.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 3 totaltotal 87.5% 21 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Subprocess/Running/Delegate/CaptureHandle.pm ↑ Summary Subprocess.pm »
1 package AnyEvent::Subprocess::Running::Delegate::CompletionCondvar;
2 48 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 48 $AnyEvent::Subprocess::Running::Delegate::CompletionCondvar::VERSION = '1.102912';
4 }
5 # ABSTRACT: Running part of the CompletionCondvar delegate
6 48 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 48 ▶use AnyEvent;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 47 with 'AnyEvent::Subprocess::Running::Delegate';
10  
11 has 'condvar' => (
12 is => 'ro',
13 isa => 'AnyEvent::CondVar',
14 29 ▶ default => sub { AnyEvent->condvar },
Subroutine __ANON__: called CC=1 SCAR=0.0
15 47 handles => [qw[send recv]],
16 required => 1,
17 );
18  
19 17 ▶sub completion_hook {
Subroutine completion_hook: called CC=1 SCAR=0.0
Pod undocumented
20 17 my ($self, $running, $args) = @_;
21 17 $self->send($args->{done});
22 }
23  
24 58 ▶sub build_events {}
Subroutine build_events: called CC=1 SCAR=0.0
Pod undocumented
25 17 ▶sub build_done_delegates {}
Subroutine build_done_delegates: called CC=1 SCAR=0.0
Pod undocumented
26  
27 47 __PACKAGE__->meta->make_immutable;
28  
29 47 1;
30  
31  
32  
33 =pod
34  
35 =head1 NAME
36  
37 AnyEvent::Subprocess::Running::Delegate::CompletionCondvar - Running part of the CompletionCondvar delegate
38  
39 =head1 VERSION
40  
41 version 1.102912
42  
43 =head1 ATTRIBUTES
44  
45 =head2 condvar
46  
47 An L<AnyEvent::Condvar> that is invoked with the C<Done> instance when
48 the process exits.
49  
50 =head3 send
51  
52 =head3 recv
53  
54 These methods are delegated from the condvar to this class, to save a
55 bit of typing.
56  
57 =head1 AUTHOR
58  
59 Jonathan Rockway <jrockway@cpan.org>
60  
61 =head1 COPYRIGHT AND LICENSE
62  
63 This software is copyright (c) 2011 by Jonathan Rockway.
64  
65 This is free software; you can redistribute it and/or modify it under
66 the same terms as the Perl 5 programming language system itself.
67  
68 =cut
69  
70  
71 __END__
« Subprocess/Running/Delegate/CaptureHandle.pm ↑ Summary Subprocess.pm »