retry package:extra
Retry an operation at most
n times (
n must be positive).
If the operation fails the
nth time it will throw that final
exception.
retry 1 (print "x") == print "x"
retry 3 (fail "die") == fail "die"
Retry an operation at most n times (n must be positive),
while the exception value and type match a predicate. If the operation
fails the nth time it will throw that final exception.