NAME

AnyEvent::Net::Curl::Queued::Multi - Net::Curl::Multi wrapped by Moo

VERSION

version 0.047

SYNOPSIS

use AnyEvent::Net::Curl::Queued::Multi;

my $multi = AnyEvent::Net::Curl::Queued::Multi->new({
    max     => 10,
    timeout => 30,
});

WARNING: GONE MOO!

This module isn't using Any::Moose anymore due to the announced deprecation status of that module. The switch to the Moo is known to break modules that do extend 'AnyEvent::Net::Curl::Queued::Easy' / extend 'YADA::Worker'! To keep the compatibility, make sure that you are using MooseX::NonMoose:

package YourSubclassingModule;
use Moose;
use MooseX::NonMoose;
extends 'AnyEvent::Net::Curl::Queued::Easy';
...

Or MouseX::NonMoose:

package YourSubclassingModule;
use Mouse;
use MouseX::NonMoose;
extends 'AnyEvent::Net::Curl::Queued::Easy';
...

Or the Any::Moose equivalent:

package YourSubclassingModule;
use Any::Moose;
use Any::Moose qw(X::NonMoose);
extends 'AnyEvent::Net::Curl::Queued::Easy';
...

However, the recommended approach is to switch your subclassing module to Moo altogether (you can use MooX::late to smoothen the transition):

package YourSubclassingModule;
use Moo;
use MooX::late;
extends 'AnyEvent::Net::Curl::Queued::Easy';
...

DESCRIPTION

This module extends the Net::Curl::Multi class through Moo and adds AnyEvent handlers.

ATTRIBUTES

active

Currently active sockets.

pool

Sockets pool.

timer

AnyEvent timer() handler.

max

Maximum parallel connections limit (default: 4).

timeout

Timeout threshold, in seconds (default: 10).

METHODS

socket_action(...)

Wrapper around the socket_action() from Net::Curl::Multi.

add_handle(...)

Overrides the add_handle() from Net::Curl::Multi. Add one handle and kickstart download.

SEE ALSO

AUTHOR

Stanislaw Pusep <stas@sysd.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Stanislaw Pusep.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.