NAME
LWP::Iterator::UserAgent - a non-blocking LWP iterator
SYNOPSIS
new
Construct a new LWP::Iterator::UserAgent object. Passes additional %opts through to LWP::UserAgent::new().
my $pua = LWP::Iterator::UserAgent->new(%opts, deadline => 10.5);
deadline
$pua->deadline;
$pua->deadline($seconds);
pester
Where the Parallel::UserAgent expects you to wait() on it, this class needs to be nagged or it will never do anything.
while(1) {
$pua->pester and last;
}
Optionally, you can pass a timeout value.
$are_we_there_yet = $pua->pester(0.1);
Note that while the LWP::Parallel::UserAgent class uses timeout as an overall deadline, this class uses the deadline attribute.
_check_connections
$bool = $self->_check_connections;
handle_response
$self->handle_response(thbbt);
request
Internal use only. Our base class drops everything on the floor when this method is called (during authentication), so we need to hatchet on it a good bit.
$self->request(thbbt);
AUTHOR
Eric Wilhelm (@) <ewilhelm at cpan dot org>
http://scratchcomputing.com/
COPYRIGHT
Copyright (C) 2006 Eric L. Wilhelm and OSoft, All Rights Reserved.
Portions derived from LWP::Parallel::UserAgent, copyright 1997-2004 Marc Langheinrich.
NO WARRANTY
Absolutely, positively NO WARRANTY, neither express or implied, is offered with this software. You use this software at your own risk. In case of loss, no person or entity owes you anything whatsoever. You have been warned.
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.