AsyncUtils.DelayExecution

Executes an Action after a delay

public static void DelayExecution(int delayMs, Action action, 
			Action<Exception> errorHandler)

Parameters

delayMs
delay in Milliseconds

action
Action to execute after delay

errorHandler

Remarks

Code is executed on a background thread, so if UI code is executed make sure you marshal back to the UI thread using a Dispatcher or Control.Invoke().

Overloads