line |
true |
false |
branch |
21
|
0 |
0 |
wantarray ? : |
|
0 |
0 |
if $self->{'status'} eq "resolve" |
22
|
0 |
0 |
if ref $results[0] or $results[0] =~ /\n/u |
51
|
358 |
7 |
if $self->{'handled'} or ($self->{'status'} // "") ne "reject" or not $self->{'results'} |
67
|
2 |
2 |
ref $_[0] eq 'HASH' ? : |
69
|
2 |
2 |
if not $options->{'concurrency'} or @items <= $options->{'concurrency'} |
75
|
3 |
4 |
unless my $item = shift @items |
89
|
2 |
788 |
if @_ |
106
|
101 |
434 |
if $self->{'results'} |
116
|
0 |
46 |
if (my $loop = $self->ioloop)->is_running |
131
|
8 |
50 |
if ($type == 1) { } |
|
38 |
12 |
elsif ($type == 2) { } |
|
6 |
6 |
elsif ($type == 3) { } |
140
|
9 |
23 |
if --$remaining <= 0 |
153
|
1 |
3 |
if --$remaining <= 0 |
164
|
2 |
3 |
if --$remaining <= 0 |
169
|
0 |
1 |
if --$remaining <= 0 |
189
|
0 |
862 |
unless my $results = $self->{'results'} |
190
|
765 |
97 |
$self->{'status'} eq 'resolve' ? : |
208
|
40 |
11 |
unless $before or $handled |
217
|
34 |
829 |
unless (ref $self) |
218
|
4 |
0 |
if $thenable and $status eq "resolve" and $results[0]->isa("Mojo::Promise") |
222
|
67 |
792 |
if ($thenable and $status eq 'resolve') { } |
|
761 |
31 |
elsif (not $self->{'results'}) { } |
236
|
0 |
0 |
if &blessed($results[0]) and $results[0]->can("then") |
237
|
0 |
0 |
unless $self->{'results'} |
244
|
166 |
343 |
unless defined $cb |
247
|
2 |
341 |
unless eval {
do {
@res = &$cb(@results);
1
}
} |
253
|
3 |
3 |
unless ref $self |
254
|
1 |
5 |
if $method eq "reject" and not @results |