Subprocess/Done/Delegate/State.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Subprocess/Done/Delegate/Handle.pm ↑ Summary Subprocess/Done/Delegate/Timeout.pm »
1 package AnyEvent::Subprocess::Done::Delegate::State;
2 48 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 48 $AnyEvent::Subprocess::Done::Delegate::State::VERSION = '1.102912';
4 }
5 # ABSTRACT: thread state through the job/run/done lifecycle
6 48 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 47 with 'AnyEvent::Subprocess::Done::Delegate';
9  
10 47 has 'state' => ( is => 'ro', isa => 'HashRef', required => 1 );
11  
12 47 __PACKAGE__->meta->make_immutable;
13  
14 47 1;
15  
16  
17  
18 =pod
19  
20 =head1 NAME
21  
22 AnyEvent::Subprocess::Done::Delegate::State - thread state through the job/run/done lifecycle
23  
24 =head1 VERSION
25  
26 version 1.102912
27  
28 =head1 DESCRIPTION
29  
30 Allows state to be passed from Job -> Run -> Done.
31  
32 =head1 ATTRIBUTES
33  
34 =head2 state
35  
36 Returns the state received from the Run object.
37  
38 =head1 AUTHOR
39  
40 Jonathan Rockway <jrockway@cpan.org>
41  
42 =head1 COPYRIGHT AND LICENSE
43  
44 This software is copyright (c) 2011 by Jonathan Rockway.
45  
46 This is free software; you can redistribute it and/or modify it under
47 the same terms as the Perl 5 programming language system itself.
48  
49 =cut
50  
51  
52 __END__
« Subprocess/Done/Delegate/Handle.pm ↑ Summary Subprocess/Done/Delegate/Timeout.pm »