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().
See also:
Class AsyncUtils© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic