| 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 |  | 1460 | use strict; | 
|  | 3 |  |  |  |  | 6 |  | 
|  | 3 |  |  |  |  | 89 |  | 
| 4 | 3 |  |  | 3 |  | 12 | use warnings; | 
|  | 3 |  |  |  |  | 5 |  | 
|  | 3 |  |  |  |  | 143 |  | 
| 5 |  |  |  |  |  |  |  | 
| 6 |  |  |  |  |  |  | our $VERSION = '0.018'; | 
| 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 |  | 830 | use Future; | 
|  | 3 |  |  |  |  | 14061 |  | 
|  | 3 |  |  |  |  | 141 |  | 
| 26 | 3 |  |  | 3 |  | 3334 | use curry; | 
|  | 3 |  |  |  |  | 1123 |  | 
|  | 3 |  |  |  |  | 172 |  | 
| 27 |  |  |  |  |  |  |  | 
| 28 | 3 |  |  | 3 |  | 2364 | use Adapter::Async::Bus; | 
|  | 3 |  |  |  |  | 13 |  | 
|  | 3 |  |  |  |  | 375 |  | 
| 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 | 13 | my $class = shift; | 
| 42 | 4 |  |  |  |  | 25 | 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 | 4812 | sub bus { shift->{bus} ||= Adapter::Async::Bus->new } | 
| 53 |  |  |  |  |  |  |  | 
| 54 |  |  |  |  |  |  | 1; | 
| 55 |  |  |  |  |  |  |  | 
| 56 |  |  |  |  |  |  | __END__ |