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: TResult OnExceptionRetry<TResult>(Func<TResult>, int, int, Action)Declarationpublic static TResult OnExceptionRetry<TResult>(
Func<TResult> func,
int attempts = 3,
int delayMs = 333,
Action onException = null
) Summary
Evaluates the specified code and returns its result. If the code throws any exceptions, retries the specified
number of times. The final attempt is executed without any exception handlers. Generic type parametersTResult | This type parameter is not documented. |
ParametersFunc<TResult> | func |
The code to be executed. | int | attempts |
The maximum number of times to retry func before giving up. | int | delayMs |
Delay, in milliseconds, before retrying func. | Action | onException |
Optional action to execute when an exception occurs and the waiting period starts. |
|