File Coverage

blib/lib/Net/Gearman/Client.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 19 19 100.0


line stmt bran cond sub pod time code
1             # You may distribute under the terms of either the GNU General Public License
2             # or the Artistic License (the same terms as Perl itself)
3             #
4             # (C) Paul Evans, 2014,2026 -- leonerd@leonerd.org.uk
5              
6             package Net::Gearman::Client 0.05;
7              
8 2     2   173151 use v5.20;
  2         6  
9 2     2   9 use warnings;
  2         4  
  2         97  
10              
11 2     2   8 use feature qw( postderef signatures );
  2         2  
  2         254  
12 2     2   9 no warnings qw( experimental::postderef experimental::signatures );
  2         3  
  2         63  
13              
14 2     2   7 use base qw( Net::Gearman Protocol::Gearman::Client );
  2         4  
  2         537  
15              
16             =head1 NAME
17              
18             C - concrete Gearman client over an IP socket
19              
20             =head1 SYNOPSIS
21              
22             =for highlighter language=perl
23              
24             use Net::Gearman::Client;
25              
26             my $client = Net::Gearman::Client->new(
27             PeerAddr => $SERVER,
28             ) or die "Cannot connect - $@\n";
29              
30             my $total = await $client->submit_job(
31             func => "sum",
32             arg => "10,20,30",
33             );
34              
35             say $total;
36              
37             =head1 DESCRIPTION
38              
39             This module combines the abstract L with
40             L to provide a simple synchronous concrete client
41             implementation.
42              
43             =cut
44              
45             =head1 AUTHOR
46              
47             Paul Evans
48              
49             =cut
50              
51             0x55AA;