NAME

Net::Curl::Promiser::AnyEvent - support for AnyEvent

SYNOPSIS

my $promiser = Net::Curl::Promiser::AnyEvent->new();

my $handle = Net::Curl::Easy->new();
$handle->setopt( CURLOPT_URL() => $url );

my $cv = AnyEvent->condvar();

$promiser->add_handle($handle)->then(
    sub { print "$url completed.$/" },
    sub { warn "$url failed: " . shift },
)->finally($cv);

$cv->recv();

DESCRIPTION

This module provides an AnyEvent-compatible subclass of Net::Curl::Promiser.

See /examples in the distribution, as well as the tests, for fleshed-out demonstrations.