Diff<>(old, new, comparer, predicate, postProcessor) NewArray<>(size1, size2, size3, initialiser) RunMain(main, onUnhandledMain, onUnhandledThread) RunMain(main, onUnhandledMain, onUnhandledThread)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Static method: bool OnExceptionRetryThenIgnore<TException>(Action, int, int)Declarationpublic static bool OnExceptionRetryThenIgnore<TException>(
Action action,
int attempts = 3,
int delayMs = 333
) Summary
Evaluates the specified code. If the code throws TException, retries the specified number
of times. If the code still throws TException on the final attempt, suppresses the
exception. Doesn't catch any other exceptions. Generic type parametersTException | This type parameter is not documented. |
ParametersAction | action |
The code to be executed. | int | attempts |
The maximum number of times to retry action before giving up. | int | delayMs |
Delay, in milliseconds, before retrying action. |
Returns
True if action returned without exceptions, false if TException was caught and
suppressed on every attempt. |