Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: void OnExceptionRetry(Action, int, int, Action)

  • Declared in: RT.Util.Ut

Declaration

public static void OnExceptionRetry(
    Action action,
    int attempts = 3,
    int delayMs = 333,
    Action onException = null
)

Summary

Evaluates the specified code. If the code throws any exceptions, retries the specified number of times. The final attempt is executed without any exception handlers.

Parameters

Actionaction The code to be executed.
intattempts The maximum number of times to retry action before giving up.
intdelayMs Delay, in milliseconds, before retrying action.
ActiononException Optional action to execute when an exception occurs and the waiting period starts.