times | Limit of times to run "body" |
sleep | Either sleep in seconds between tries or Iter that returns successive sleep times in seconds |
logger | Function to use to log attempts, caught body exceptions and sleep times. Defaults to stdlib's debug. |
success_predicate | CANDIDATE FOR REMOVAL. Run against body results to. Says whether the attempt succeeded. Defaults to Bool. |
title | Prefix strings sent to logger with this string. Defaults to "<retry>". |
progress_cb | Called before each attempt with (1) current attempt number and (2) limit of attempts ("times"). Defaults to do nothing. |
success_cb | Called when body succeeds with the result that comes from body. Defaults to identity function. |
fail_cb | If passed, called if all attempts fail. Defaults to null. |