line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Async::Graphite::Async; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.1_1'; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 NAME |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
Net::Async::Graphite::Async - The IO::Async loop. |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 SYNOPSIS |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
with 'Net::Async::Graphite::Async'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 DESCRIPTION |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
Don't use this module directly, use L and create |
16
|
|
|
|
|
|
|
objects using its C method in the normal way. Those objects will |
17
|
|
|
|
|
|
|
include the functionality documented here. |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
This role brings the capacity to interact with the main |
20
|
|
|
|
|
|
|
L object. |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 BUGS |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
This is probably pointless and should at least be renamed. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=cut |
27
|
|
|
|
|
|
|
|
28
|
3
|
|
|
3
|
|
1617
|
use v5.14; |
|
3
|
|
|
|
|
10
|
|
29
|
3
|
|
|
3
|
|
16
|
use strictures 2; |
|
3
|
|
|
|
|
23
|
|
|
3
|
|
|
|
|
110
|
|
30
|
3
|
|
|
3
|
|
696
|
use Moo::Role; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
20
|
|
31
|
3
|
|
|
3
|
|
1149
|
use Carp; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
138
|
|
32
|
|
|
|
|
|
|
|
33
|
3
|
|
|
3
|
|
18
|
use IO::Async::Loop; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
58
|
|
34
|
3
|
|
|
3
|
|
16
|
use namespace::clean; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
15
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 ROLE |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
This role is probably pointless now that this module isn't part of a |
39
|
|
|
|
|
|
|
larger project. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=over |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=item _loop (read-only) |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
An internal reference to the L loop. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=cut |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
has _loop => is => lazy => init_arg => undef, builder => sub { |
52
|
0
|
|
|
0
|
|
|
IO::Async::Loop->new; |
53
|
|
|
|
|
|
|
}; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
1; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=back |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 SEE ALSO |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
L |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
L |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
L |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 AUTHOR |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Matthew King |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=cut |