Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    RunFireAndForget(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.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX