1Gearman::Taskset(3)   User Contributed Perl Documentation  Gearman::Taskset(3)
2
3
4

NAME

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

SYNOPSIS

10           use Gearman::Client;
11           my $client = Gearman::Client->new;
12
13           # waiting on a set of tasks in parallel
14           my $ts = $client->new_task_set;
15           $ts->add_task( "add" => "1+2", {...});
16           $ts->wait();
17

DESCRIPTION

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

METHODS

22   new($client)
23   wait(%opts)
24       Waits for a response from the job server for any of the tasks listed in
25       the taskset. Will call the on_* handlers for each of the tasks that
26       have been completed, updated, etc.  Doesn't return until everything has
27       finished running or failing.
28
29   add_task(Gearman::Task)
30   add_task($func, <$scalar | $scalarref>, <$uniq | $opts_hr>
31       Adds a task to the taskset.  Three different calling conventions are
32       available.
33
34       $opts_hr see Gearman::Task
35
36
37
38perl v5.32.0                      2020-07-28               Gearman::Taskset(3)
Impressum