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() ) {
"ONE OR MORE FAILURES!\n"
;
}
$call1
->request_content() .
"\n"
;
$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>