UI Tookit UI Tookit
UI Tookit UI Tookit
DocFX + Singulink = ♥

Search Results for

    Method RunAndForget

    RunAndForget(Func<Task>)

    Runs the specified task and propagates any exceptions to the UI thread.

    Declaration
    void RunAndForget(Func<Task> taskFunc)
    Parameters
    Type Name Description
    Func<Task> taskFunc
    Remarks

    This method does not force the task to run on the UI thread if it is called from a non-UI thread, but unhandled exceptions from the task will be propagated to the UI thread. If this method is expected to be called from a non-UI thread, the SendAsync(Action) method can be used to synchronize some (or all) of the execution to the UI thread.

    RunAndForget(Task)

    Runs the specified task and propagates any exceptions to the UI thread.

    Declaration
    void RunAndForget(Task task)
    Parameters
    Type Name Description
    Task task
    Remarks

    This method does not force the task to run on the UI thread if it is called from a non-UI thread, but unhandled exceptions from the task will be propagated to the UI thread. If this method is expected to be called from a non-UI thread, the SendAsync(Action) method can be used to synchronize some (or all) of the execution to the UI thread.

    © Singulink. All rights reserved.