Jonathan Rockway

NAME

AnyEvent::Retry::Interval::Fibonacci - fibonacci back-off

VERSION

version 0.03

SYNOPSIS

AnyEvent::Retry::Interval that waits longer and longer after each failed attempt.

INITARGS

scale

A number greater than 0 that the fibonacci number is multiplied by before being returned. For example, to wait 1 millisecond, then 1 millisecond, then 2 milliseconds, then 3 ..., pass scale = 1/1000>.

NOTES

The fibonacci number is computed with Math::Fibonacci. This may yield slightly different results from the iterative F(n) = F(n-2) + F(n-1) method.

AUTHOR

Jonathan Rockway <jrockway@cpan.org>

COPYRIGHT AND LICENSE

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.