Ensures safe operation of a task without await even if an execution fails with an exception. This forces the exception to be cleared unlike a non-continued task.
This version allows you to capture and respond to any exceptions caused by the Task code executing.
public static void FireAndForget(Task t, Action<Exception> del)
Parameters
t
del
Action delegate that receives an Exception parameter you can use to log or otherwise handle (or ignore) any exceptions
Overloads:
See also:
Class AsyncUtils© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic