| AnyEvent-Subprocess documentation | Contained in the AnyEvent-Subprocess distribution. |
AnyEvent::Subprocess::Running::Delegate::CompletionCondvar - Running part of the CompletionCondvar delegate
version 1.102912
An AnyEvent::Condvar that is invoked with the Done instance when
the process exits.
These methods are delegated from the condvar to this class, to save a bit of typing.
Jonathan Rockway <jrockway@cpan.org>
This software is copyright (c) 2011 by Jonathan Rockway.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| AnyEvent-Subprocess documentation | Contained in the AnyEvent-Subprocess distribution. |
package AnyEvent::Subprocess::Running::Delegate::CompletionCondvar; BEGIN { $AnyEvent::Subprocess::Running::Delegate::CompletionCondvar::VERSION = '1.102912'; } # ABSTRACT: Running part of the CompletionCondvar delegate use Moose; use AnyEvent; with 'AnyEvent::Subprocess::Running::Delegate'; has 'condvar' => ( is => 'ro', isa => 'AnyEvent::CondVar', default => sub { AnyEvent->condvar }, handles => [qw[send recv]], required => 1, ); sub completion_hook { my ($self, $running, $args) = @_; $self->send($args->{done}); } sub build_events {} sub build_done_delegates {} __PACKAGE__->meta->make_immutable; 1;
__END__