| 1 | 2 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | package DR::Tnt::Client::Coro; | ||||||||||
| 6 | 2 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 2 | $Carp::Internal{ (__PACKAGE__) }++; | |||||||||
| 8 | 2 | ▶ | use Coro; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 2 | ▶ | use Mouse; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 0 | ▶ | sub driver { 'async' } | ||||||||
|
Subroutine
driver: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 12 | |||||||||||
| 13 | sub request { | ||||||||||
| 14 | 0 | ▶ | my ($self, @args) = @_; | ||||||||
|
Subroutine
request: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 15 | |||||||||||
| 16 | 0 | my $cb = Coro::rouse_cb; | |||||||||
| 17 | |||||||||||
| 18 | 0 | my $m = $args[0]; | |||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | @args = ('select', @args[1, 2, 3], 1, 0, 'EQ') if $m eq 'get'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | |||||||||||
| 22 | 0 | $self->_fcb->request(@args, $cb); | |||||||||
| 23 | 0 | my ($status, $message, $resp) = Coro::rouse_wait $cb; | |||||||||
| 24 | |||||||||||
| 25 | 0 | return $self->_response($m, $status, $message, $resp); | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 2 | with 'DR::Tnt::Client::Role::LikeSync'; | |||||||||
| 29 | |||||||||||
| 30 | 2 | __PACKAGE__->meta->make_immutable; | |||||||||