retry


Description:

public bool retry (owned RetryFunc fn)

Retries bool callback until success or attempts exhausted.

Example:

    bool ok = retry.retry (() => {
return attempt_io_operation ();
});

Parameters:

fn

callback to run.

Returns:

true if callback succeeded.