NAME

Net::Curl::Promiser::IOAsync - support for IO::Async

SYNOPSIS

my $loop = IO::Async::Loop->new();

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

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

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

$loop->run();

DESCRIPTION

This module provides an IO::Async-compatible interface for Net::Curl::Promiser.

See /examples in the distribution for a fleshed-out demonstration.

NOTE: The actual interface is that provided by Net::Curl::Promiser::LoopBase.