AnyEvent::Subprocess::Job - role representing a runnable job
version 1.102912
Coderef to run in the subprocess; or an arrayref or string to pass to exec.
exec
Coderef to be called when the process exits. Will be passed a AnyEvent::Subprocess::Done object.
The classname of the "run" class returned by run; defaults to AnyEvent::Subprocess::Running.
run
AnyEvent::Subprocess::Running
The instance of the run class above; built lazily.
Calling run twice does not run the process twice, but I think this might change in the future.
All the methods in this role are internal, and include:
_init_run_instance _build_run_delegates _child_setup_hook _child_finalize_hook _parent_setup_hook _parent_finalize_hook _build_code_args _run_child _build_run
If you want to have your own code run at various phases in the process, implement a delegate. See AnyEvent::Subprocess::Job::Delegate for details.
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.
To install AnyEvent::Subprocess, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::Subprocess
CPAN shell
perl -MCPAN -e shell install AnyEvent::Subprocess
For more information on module installation, please visit the detailed CPAN module installation guide.