Interface IFireAndForgetRunner
Provides a mechanism to run tasks in a fire-and-forget manner without blocking the calling thread.
Namespace: Umbraco.Cms.Core
Assembly: Umbraco.Core.dll
Syntax
public interface IFireAndForgetRunner
Methods
View SourceRunFireAndForget(Func<Task>)
Runs the specified task in the background without waiting for it to complete.
Declaration
void RunFireAndForget(Func<Task> task)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<Task> | task | A function that returns the task to execute. |
Remarks
The task will be executed on a background thread. Exceptions will be logged but not propagated to the caller.