line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::mirai::Watcher; |
2
|
|
|
|
|
|
|
$App::mirai::Watcher::VERSION = '0.003'; |
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
634
|
use parent qw(Mixin::Event::Dispatch); |
|
1
|
|
|
|
|
354
|
|
|
1
|
|
|
|
|
5
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
App::mirai::Watcher - event class for L notifications |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
version 0.003 |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=cut |
17
|
|
|
|
|
|
|
|
18
|
1
|
|
|
1
|
|
4252
|
use Variable::Disposition; |
|
1
|
|
|
|
|
530
|
|
|
1
|
|
|
|
|
97
|
|
19
|
|
|
|
|
|
|
|
20
|
5
|
|
|
5
|
0
|
6
|
sub new { my $class = shift; bless { @_ }, $class } |
|
5
|
|
|
|
|
15
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head2 discard |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Disposes of this watcher. Will raise an exception if anything else is |
25
|
|
|
|
|
|
|
holding on to it. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=cut |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub discard { |
30
|
3
|
|
|
3
|
1
|
1204
|
App::mirai::Future->delete_watcher($_[0]); |
31
|
3
|
|
|
|
|
8
|
dispose $_[0]; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |