| 1 | package AnyEvent::Subprocess::Running::Delegate::Timeout; | ||
| 2 | 48 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 48 | $AnyEvent::Subprocess::Running::Delegate::Timeout::VERSION = '1.102912'; | |
| 4 | } | ||
| 5 | # ABSTRACT: Running part of Timeout delegate | ||
| 6 | 48 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 48 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 48 | ▶ | use AnyEvent::Subprocess::Done::Delegate::Timeout; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 47 | with 'AnyEvent::Subprocess::Running::Delegate'; | |
| 11 | |||
| 12 | 47 | has 'timer' => ( | |
| 13 | is => 'ro', | ||
| 14 | clearer => 'clear_timer', | ||
| 15 | ); | ||
| 16 | |||
| 17 | has 'killed_by_timer' => ( | ||
| 18 | init_arg => undef, | ||
| 19 | accessor => 'killed_by_timer', | ||
| 20 | 2 | ▶ | default => sub { undef }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 21 | 47 | ); | |
| 22 | |||
| 23 | 2 | ▶ | sub completion_hook { |
|
Subroutine
completion_hook: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 24 | 2 | my $self = shift; | |
| 25 | 2 | $self->clear_timer; | |
| 26 | } | ||
| 27 | |||
| 28 | 2 | ▶ | sub build_done_delegates { |
|
Subroutine
build_done_delegates: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 29 | 2 | my $self = shift; | |
| 30 | 2 | return AnyEvent::Subprocess::Done::Delegate::Timeout->new( | |
| 31 | name => $self->name, | ||
| 32 | timed_out => $self->killed_by_timer, | ||
| 33 | ); | ||
| 34 | } | ||
| 35 | |||
| 36 | 4 | ▶ | sub build_events {} |
|
Subroutine
build_events: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 37 | 0 | ▶ | sub build_code_args {} |
|
Subroutine
build_code_args: not called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 38 | |||
| 39 | 47 | __PACKAGE__->meta->make_immutable; | |
| 40 | |||
| 41 | 47 | 1; | |
| 42 | |||
| 43 | __END__ | ||