Gearman::Taskset - a taskset in Gearman, from the point of view of a client
use Gearman::Client; my $client = Gearman::Client->new; # waiting on a set of tasks in parallel my $ts = $client->new_task_set; $ts->add_task( "add" => "1+2", {...}); $ts->wait();
Gearman::Taskset is a Gearman::Client's representation of tasks queue t in Gearman
run a hook callback if defined
add a hook
this method is part of the "Taskset" interface, also implemented by Gearman::Client::Async, where no tasksets make sense, so instead the Gearman::Client::Async object itself is also its taskset. (the client tracks all tasks). so don't change this, without being aware of Gearman::Client::Async. similarly, don't access $ts->{client} without going via this accessor.
Close sockets, cleanup internals.
event loop for reading in replies
$opts_hr see Gearman::Task
$opts_hr
To install Gearman::Job, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gearman::Job
CPAN shell
perl -MCPAN -e shell install Gearman::Job
For more information on module installation, please visit the detailed CPAN module installation guide.