line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Evo::Promise::Util; |
2
|
6
|
|
|
6
|
|
2748
|
use Evo '-Export *; List::Util first; Carp croak; /::Const *'; |
|
6
|
|
|
|
|
16
|
|
|
6
|
|
|
|
|
55
|
|
3
|
|
|
|
|
|
|
|
4
|
5
|
50
|
|
5
|
0
|
41
|
sub is_locked_in ($parent, $child) : Export { |
|
5
|
50
|
|
|
|
46
|
|
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
10
|
|
5
|
5
|
50
|
|
|
|
28
|
croak unless defined wantarray; |
6
|
5
|
|
|
4
|
|
80
|
first { $_ == $child } $parent->d_children->@*; |
|
4
|
|
|
|
|
49
|
|
7
|
6
|
|
|
6
|
|
53
|
} |
|
6
|
|
|
|
|
15
|
|
|
6
|
|
|
|
|
44
|
|
8
|
|
|
|
|
|
|
|
9
|
15
|
50
|
|
15
|
0
|
92
|
sub is_fulfilled_with ($v, $p) : Export { |
|
15
|
50
|
|
|
|
64
|
|
|
15
|
|
|
|
|
30
|
|
|
15
|
|
|
|
|
32
|
|
|
15
|
|
|
|
|
23
|
|
10
|
15
|
50
|
|
|
|
49
|
croak unless defined wantarray; |
11
|
15
|
100
|
66
|
|
|
112
|
return unless $p->d_settled && $p->state eq FULFILLED; |
12
|
14
|
|
|
|
|
42
|
my $dv = $p->d_v; |
13
|
|
|
|
|
|
|
|
14
|
14
|
100
|
|
|
|
96
|
return defined $dv ? $v eq $dv : !defined $v; |
15
|
6
|
|
|
6
|
|
1468
|
} |
|
6
|
|
|
|
|
16
|
|
|
6
|
|
|
|
|
386
|
|
16
|
|
|
|
|
|
|
|
17
|
13
|
50
|
|
13
|
0
|
72
|
sub is_rejected_with ($v, $p) : Export { |
|
13
|
50
|
|
|
|
40
|
|
|
13
|
|
|
|
|
28
|
|
|
13
|
|
|
|
|
24
|
|
|
13
|
|
|
|
|
22
|
|
18
|
13
|
50
|
|
|
|
36
|
croak unless defined wantarray; |
19
|
13
|
100
|
66
|
|
|
105
|
return unless $p->d_settled && $p->state eq REJECTED; |
20
|
11
|
|
|
|
|
32
|
my $dv = $p->d_v; |
21
|
11
|
100
|
|
|
|
775
|
return defined $dv ? $v eq $dv : !defined $v; |
22
|
6
|
|
|
6
|
|
1420
|
} |
|
6
|
|
|
|
|
15
|
|
|
6
|
|
|
|
|
31
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |