Skip to content

Poe::Wheel::Run based way to arrange a minimal required nummer of processes

Notifications You must be signed in to change notification settings

p-alik/POE-Wheel-Spawner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POE-Wheel-Spawner

CPAN version Build Status Coverage Status

POE::Wheel::Spawner is based on POE::Wheel::Run. This module offers a smart facility to arrange a minimal required nummer of subprocesses

    use POE::Wheel::Spawner;
    my $foo = POE::Wheel::Spawner->new(
                pool_size => 2,
                stop_if_done => 1,
                workload => sub { _workload() }
        );

    $foo->run();

    sub _workload {
        # request for a new sibling
        $foo->spawn($$);
        # do some stuff
    }

About

Poe::Wheel::Run based way to arrange a minimal required nummer of processes

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages