The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Process::Async::Manager - handle async background process

VERSION

version 0.003

SYNOPSIS

 my $pm = Process::Async::Manager->new;
 my $child = $pm->spawn(
  worker_class => 'Some::Worker::Class',
 );
 $child->stdio->write('start');

DESCRIPTION

Look in examples/ in the source distribution.

METHODS

configure

Applies our configuration. Currently accepts:

  • worker - either the name of the subclass used for instantiating a worker, or an existing instance, or a coderef which will return a suitable Process::Async::Worker instance

  • child - either the name of the subclass used for instantiating a child, or an existing instance, or a coderef which will return a suitable Process::Async::Child instance

worker

Accessor for the Process::Async::Worker generator/class/instance.

child

Accessor for the Process::Async::Child generator/class/instance.

spawn

Spawn a child. Returns a Process::Async::Child instance.

Can take worker/child params.

INHERITED METHODS

IO::Async::Notifier

add_child, adopt_future, can_event, children, configure_unknown, debug_printf, get_loop, invoke_error, invoke_event, loop, make_event_cb, maybe_invoke_event, maybe_make_event_cb, new, notifier_name, parent, remove_child, remove_from_parent

AUTHOR

Tom Molesworth <cpan@perlsite.co.uk>

LICENSE

Copyright Tom Molesworth 2014-2015. Licensed under the same terms as Perl itself.