line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package YADA::Worker; |
2
|
|
|
|
|
|
|
# ABSTRACT: "Yet Another Download Accelerator Worker": alias for AnyEvent::Net::Curl::Queued::Easy |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
34
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
78
|
|
6
|
2
|
|
|
2
|
|
10
|
use utf8; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
44
|
|
7
|
2
|
|
|
2
|
|
66
|
use warnings qw(all); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
81
|
|
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
17
|
use Moo; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
14
|
|
10
|
|
|
|
|
|
|
extends 'AnyEvent::Net::Curl::Queued::Easy'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our $VERSION = '0.047'; # VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
has '+opts' => (default => sub { { encoding => '', maxredirs => 5 } }); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
## no critic (ProtectPrivateSubs) |
17
|
|
|
|
|
|
|
after init => sub { shift->setopt(followlocation => 1) }; |
18
|
|
|
|
|
|
|
after finish => sub { shift->queue->_shift_worker }; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__END__ |