Retries nullable callback until non-null value or attempts exhausted.
Example:
string? token = retry.retryResult<string?> (() => {
return maybe_fetch_token ();
});
| fn |
callback to run. |
|
non-null value on success, null on failure. |