| 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__ | ||