line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Adapter::Async; |
2
|
|
|
|
|
|
|
# ABSTRACT: common API for linking data sources and views |
3
|
3
|
|
|
3
|
|
942
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
88
|
|
4
|
3
|
|
|
3
|
|
9
|
use warnings; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
113
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.017'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Adapter::Async - provides a way to link a data source with a view |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
version 0.017 |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 DESCRIPTION |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
C - this is extremely experimental and utterly unoptimised. |
19
|
|
|
|
|
|
|
Expect the API to change between versions until this reaches 1.0+. |
20
|
|
|
|
|
|
|
Primarily being released to allow work to continue on various L |
21
|
|
|
|
|
|
|
widgets and web framework components. |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=cut |
24
|
|
|
|
|
|
|
|
25
|
3
|
|
|
3
|
|
1134
|
use Future; |
|
3
|
|
|
|
|
20034
|
|
|
3
|
|
|
|
|
73
|
|
26
|
3
|
|
|
3
|
|
1622
|
use curry; |
|
3
|
|
|
|
|
565
|
|
|
3
|
|
|
|
|
74
|
|
27
|
|
|
|
|
|
|
|
28
|
3
|
|
|
3
|
|
1112
|
use Adapter::Async::Bus; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
187
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 METHODS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=cut |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head2 new |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Instantiate, applying any parameters directly to the instance hashref. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub new { |
41
|
4
|
|
|
4
|
1
|
7
|
my $class = shift; |
42
|
4
|
|
|
|
|
14
|
bless { @_ }, $class |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head2 bus |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Accessor for the L instance, will create one as |
48
|
|
|
|
|
|
|
required. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=cut |
51
|
|
|
|
|
|
|
|
52
|
22
|
|
66
|
22
|
1
|
3131
|
sub bus { shift->{bus} ||= Adapter::Async::Bus->new } |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
__END__ |