| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Mojo::Rx::Subscriber; |
|
2
|
2
|
|
|
2
|
|
14
|
use strict; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
67
|
|
|
3
|
2
|
|
|
2
|
|
11
|
use warnings FATAL => 'all'; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
329
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub next { |
|
6
|
6
|
|
|
6
|
0
|
38
|
my $self = shift; |
|
7
|
|
|
|
|
|
|
# TODO: should @_ be replaced with splice @_, 0, 1? |
|
8
|
6
|
100
|
|
|
|
18
|
$self->{next}->(@_) if defined $self->{next}; |
|
9
|
|
|
|
|
|
|
} |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub error { |
|
12
|
0
|
|
|
0
|
0
|
0
|
my $self = shift; |
|
13
|
|
|
|
|
|
|
# TODO: should @_ be replaced with splice @_, 0, 1? |
|
14
|
0
|
0
|
|
|
|
0
|
$self->{error}->(@_) if defined $self->{error}; |
|
15
|
|
|
|
|
|
|
} |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub complete { |
|
18
|
1
|
|
|
1
|
0
|
5
|
my $self = shift; |
|
19
|
1
|
50
|
|
|
|
5
|
$self->{complete}->() if defined $self->{complete}; |
|
20
|
|
|
|
|
|
|
} |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |