Méthode | Description | |
---|---|---|
DelayAndExecute ( this action, int delay ) : ICancellationToken |
Execute an action on the thread pool after a specified number of milliseconds.
|
|
DelayAndExecute ( this action, |
Execute an action on the thread pool after a specified number of milliseconds.
|
|
TryExecute ( this action, Action |
Attempts to execute an action and processes exceptions using the given exception handler.
|
public static DelayAndExecute ( this action, int delay ) : ICancellationToken | ||
action | this | The action to be executed. |
delay | int | The amount of time to wait before execution, in milliseconds. |
Résultat | ICancellationToken |
public static DelayAndExecute ( this action, |
||
action | this | The action to be executed. |
waitObj | The wait handle to be used to cancel execution. | |
delay | int | The amount of time to wait before execution, in milliseconds. |
Résultat | void |
public static TryExecute ( this action, Action |
||
action | this | The action to be executed. |
exceptionHandler | Action |
The handler to be called in the event of an error. |
Résultat | bool |