Retries bool callback until success or attempts exhausted.
Example:
bool ok = retry.retry (() => {
return attempt_io_operation ();
});
| fn |
callback to run. |
|
true if callback succeeded. |