| 1 | package Tak::WeakClient; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 1 | extends 'Tak::Client'; | |||||||||
| 6 | |||||||||||
| 7 | 1 | has service => (is => 'ro', required => 1, weak_ref => 1); | |||||||||
| 8 | |||||||||||
| 9 | sub clone_or_self { | ||||||||||
| 10 | 0 | ▶ | my ($self) = @_; | ||||||||
|
Subroutine
clone_or_self: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 11 | 0 | my $new = $self->service->clone_or_self; | |||||||||
| 12 | ($new ne $self->service | ||||||||||
| 13 | ? 'Tak::Client' | ||||||||||
| 14 | 0 | ▶ | : ref($self))->new(service => $new, curried => [ @{$self->curried} ]); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | |||||||||||
| 18 | 1 | 1; | |||||||||