NAME

Gearman::Taskset - a taskset in Gearman, from the point of view of a Gearman::Client

SYNOPSIS

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();

DESCRIPTION

Gearman::Taskset is a Gearman::Client's representation of tasks queue

METHODS

new($client)

run_hook($name)

run a hook callback if defined

add_hook($name, [$cb])

add a hook

client ()

return Gearman::Client

cancel()

Close sockets, cleanup internals.

wait(%opts)

event loop for reading in replies

add_task(Gearman::Task)

add_task($func, <$scalar | $scalarref>, <$uniq | $opts_hr>

$opts_hr see Gearman::Task

process_packet($res, $sock)