eBay::API::Simple::Parallel - Support for parallel requests
my $pua = eBay::API::Simple::Parallel->new(); my $call1 = eBay::API::Simple::RSS->new( { parallel => $pua, } ); $call1->execute( 'http://worldofgood.ebay.com/Clothes-Shoes-Men/43/list?format=rss', ); my $call2 = eBay::API::Simple::RSS->new( { parallel => $pua, } ); $call2->execute( 'http://worldofgood.ebay.com/Home-Garden/46/list?format=rss' ); $pua->wait(); if ( $pua->has_error() ) { print "ONE OR MORE FAILURES!\n"; } print $call1->request_content() . "\n"; print $call2->response_content() "\n";
my $pua = ebay::API::Simple::Parallel->new();
$pua->wait();
This method will wait for all requests to complete with an optional timeout.
An array of object instances will be returned.
Returns true if any of the calls contain an error.
Brian Gontowski <bgontowski@gmail.com>
To install eBay::API::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm eBay::API::Simple
CPAN shell
perl -MCPAN -e shell install eBay::API::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.