NAME

AnyEvent::Subprocess::Running::Delegate - delegate on the running process class

VERSION

version 1.102912

REQUIRED METHODS

Delegates must implement these methods:

build_events

Return a list of events that need to be sent before the run will be considered complete

build_done_delegates

Return a list of delegates to be passed to the "done" instance.

completion_hook

Called after all events are received but before calling the final on_complete method.

METHODS

event_sender_for($name)

Returns the event sender coderef for the event named $name. $name should have been returned by build_events, otherwise this will break.

send_event($name, $value)

Method that works like calling the coderef returned by event_sender_for($name).

AUTHOR

Jonathan Rockway <jrockway@cpan.org>

COPYRIGHT AND LICENSE

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.