The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

eBay::API::Simple::Parallel - Support for parallel requests

USAGE

my $pua = eBay::API::Simple::Parallel->new();
my $call1 = eBay::API::Simple::RSS->new( {
parallel => $pua,
} );
$call1->execute(
);
my $call2 = eBay::API::Simple::RSS->new( {
parallel => $pua,
} );
$call2->execute(
);
$pua->wait();
if ( $pua->has_error() ) {
print "ONE OR MORE FAILURES!\n";
}
print $call1->request_content() . "\n";
print $call2->response_content() "\n";

PUBLIC METHODS

new()

my $pua = ebay::API::Simple::Parallel->new();

wait( $timeout )

$pua->wait();

This method will wait for all requests to complete with an optional timeout.

An array of object instances will be returned.

has_error

Returns true if any of the calls contain an error.

AUTHOR

Brian Gontowski <bgontowski@gmail.com>