NAME
MultiTask::Manager - work a group of minions until they are dead
SYNOPSIS
my $man = MultiTask::Manager->new;
$man->set_on_add(sub {...});
...
$man->add($worker);
if($man->has_work) {
$man->work;
}
Constructor
new
my $man = MultiTask::Manager->new(
on_add => sub {
my ($self, $minion) = @_;
},
);
Minion Management
add
$minion = $man->add($minion);
remove
$man->remove($minion);
Getting Work Done
work
$man->work;
quit_all
$man->quit_all;
AUTHOR
Eric Wilhelm <ewilhelm at cpan dot org>
http://scratchcomputing.com/
BUGS
If you found this module on CPAN, please report any bugs or feature requests through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
If you pulled this development version from my /svn/, please contact me directly.
COPYRIGHT
Copyright (C) 2006 Eric L. Wilhelm, All Rights Reserved.
NO WARRANTY
Absolutely, positively NO WARRANTY, neither express or implied, is offered with this software. You use this software at your own risk. In case of loss, no person or entity owes you anything whatsoever. You have been warned.
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.