| 1 | package DBIO::Future; | ||||||||||
| 2 | # ABSTRACT: Future interface contract for async DBIO operations | ||||||||||
| 3 | |||||||||||
| 4 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 5 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 5 | our $VERSION = '0.900007'; | |||||||||
| 8 | |||||||||||
| 9 | 5 | ▶ | use Carp 'croak'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 5 | ▶ | use namespace::clean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | |||||||||||
| 13 | 20 | ▶ | sub validate { | ||||||||
|
Subroutine
validate: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||
| 14 | 20 | my ($class, $obj) = @_; | |||||||||
| 15 | 20 | for (qw(then catch get is_ready is_failed done fail needs_all)) { | |||||||||
| 16 | 120 | ▶ | croak "$obj does not implement $_" unless $obj->can($_); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | } | ||||||||||
| 18 | 7 | return 1; | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 5 | 1; | |||||||||
| 22 | |||||||||||
| 23 | __END__ | ||||||||||