GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ANYEVENT::SUBPROCESS::JOB (3)

.ds Aq ’

NAME

AnyEvent::Subprocess::Job - role representing a runnable job

CONTENTS

VERSION

version 1.102912

ATTRIBUTES

    code

Coderef to run in the subprocess; or an arrayref or string to pass to exec.

    on_completion

Coderef to be called when the process exits. Will be passed a AnyEvent::Subprocess::Done object.

    run_class

The classname of the run class returned by run; defaults to AnyEvent::Subprocess::Running.

    run

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.

METHODS

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.

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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 ANYEVENT::SUBPROCESS::JOB (3) 2011-02-25

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.