AnyEvent::Retry::Interval - role representing a time sequence generator for AnyEvent::Retry
AnyEvent::Retry
version 0.03
Reset the sequence generator to its initial state.
reset accepts no arguments.
reset
Return the next element in the sequence. In scalar context, return only the next element. In list context, return a pair of the next element and the number of times next has been called since reset.
next
next accepts no arguments.
Consume this role.
Your next method only needs to return the next value in the sequence; the list context behavior is automatically added when you consume this role. It is automatically passed the counter as the only argument, which is 1 the first time after a reset.
1
Jonathan Rockway <jrockway@cpan.org>
This software is copyright (c) 2010 by Jonathan Rockway.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install AnyEvent::Retry, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::Retry
CPAN shell
perl -MCPAN -e shell install AnyEvent::Retry
For more information on module installation, please visit the detailed CPAN module installation guide.