| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Mojo::Promise::Role::HigherOrder; |
|
2
|
1
|
|
|
1
|
|
2765
|
use Mojo::Base '-role'; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
737
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
85
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.007'; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=encoding utf8 |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Mojo::Promise::Role::HigherOrder - Fulfill with the first fulfilled promise |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
use Mojo::Promise; |
|
17
|
|
|
|
|
|
|
use Mojo::Promise::Role::HigherOrder; |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
my $any_promise = Mojo::Promise |
|
20
|
|
|
|
|
|
|
->with_roles( '+Any' ) # or +None or +Some |
|
21
|
|
|
|
|
|
|
->any( @promises ); |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
This module is an umbrella for L, |
|
26
|
|
|
|
|
|
|
L, and L. |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
L, L, L |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
L |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 SOURCE AVAILABILITY |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
This source is in Github: |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
https://github.com/briandfoy/mojo-promise-role-higherorder |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 AUTHOR |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
brian d foy, C<< >> |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Copyright © 2018-2025, brian d foy, All Rights Reserved. |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
You may redistribute this under the terms of the Artistic License 2.0. |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=cut |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |