NAME
Net::Curl::Promiser::Mojo - support for Mojolicious
SYNOPSIS
my $promiser = Net::Curl::Promiser::Mojo->new();
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 { Mojo::IOLoop->stop() } );
Mojo::IOLoop->start()();
DESCRIPTION
This module provides an AnyEvent-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.
STATUS
EXPERIMENTAL: This module doesn’t pass its own tests on all platforms. (On MacOS it nearly always fails, whereas it passes consistently on Linux.) Caveat emptor.