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
|
|
840
|
use strict; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
60
|
|
4
|
3
|
|
|
3
|
|
7
|
use warnings; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
98
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.019'; |
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.018 |
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
|
|
479
|
use Future; |
|
3
|
|
|
|
|
9258
|
|
|
3
|
|
|
|
|
51
|
|
26
|
3
|
|
|
3
|
|
1285
|
use curry; |
|
3
|
|
|
|
|
448
|
|
|
3
|
|
|
|
|
68
|
|
27
|
|
|
|
|
|
|
|
28
|
3
|
|
|
3
|
|
851
|
use Adapter::Async::Bus; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
153
|
|
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
|
5
|
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
|
32
|
|
66
|
32
|
1
|
2051
|
sub bus { shift->{bus} ||= Adapter::Async::Bus->new } |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
__END__ |