1Gearman::Client::Async(U3s)er Contributed Perl DocumentatGieoanrman::Client::Async(3)
2
3
4
6 Gearman::Client::Async - Asynchronous client module for Gearman for
7 Danga::Socket applications
8
10 use Gearman::Client::Async;
11
12 # Instantiate a new Gearman::Client::Async object.
13 $client = Gearman::Client::Async->new(
14 job_servers => [ '127.0.0.1', '192.168.0.1:123' ],
15 );
16
17 # Overwrite job server list with a new one.
18 $client->set_job_servers( '10.0.0.1' );
19
20 # Read list of job servers out of the client.
21 $arrayref = $client->job_servers;
22 @array = $client->job_servers;
23
24 # Start a task
25 $task = Gearman::Task->new(...); # with callbacks, etc
26 $client->add_task( $task );
27
29 Copyright 2006 Six Apart, Ltd.
30
31 License granted to use/distribute under the same terms as Perl itself.
32
34 This is free software. This comes with no warranty whatsoever.
35
37 Brad Fitzpatrick (brad@danga.com)
38 Jonathan Steinert (hachi@cpan.org)
39
40
41
42perl v5.32.0 2020-07-28 Gearman::Client::Async(3)