NAME
LWP::Iterator::UserAgent - a non-blocking LWP iterator
SYNOPSIS
new
my $pua = LWP::Iterator::UserAgent->new(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.
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.