Skip to content

FireAndForget Method ​

Definition ​

  • Namespace: JASE
  • Assembly: JASE.Concurrency.dll

Overloads ​

NameDescription
void FireAndForget(Func<Task> func, Action<Exception> onError = null)Executes an async method fire-and-forget.
void FireAndForget(Task task, Action<Exception> onError = null)Executes a task without awaiting it and swallows or logs exceptions safely.

void FireAndForget(Func<Task> func, Action<Exception> onError = null) ​

csharp
void FireAndForget(Func<Task> func, Action<Exception> onError = null)

Executes an async method fire-and-forget.

void FireAndForget(Task task, Action<Exception> onError = null) ​

csharp
void FireAndForget(Task task, Action<Exception> onError = null)

Executes a task without awaiting it and swallows or logs exceptions safely.