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

Search Results for

    Method SendAsync

    SendAsync(Action)

    Synchronously executes the specified action if the current thread is the UI thread, otherwise asynchronously posts it to the UI thread for execution and returns a task that completes when execution finishes. Tracked as a non-busy task.

    Declaration
    ValueTask SendAsync(Action action)
    Parameters
    Type Name Description
    Action action
    Returns
    Type Description
    ValueTask

    SendAsync<T>(T, Action<T>)

    Synchronously executes the specified action if the current thread is the UI thread, otherwise asynchronously posts it to the UI thread for execution and returns a task that completes when execution finishes. Tracked as a non-busy task.

    Declaration
    ValueTask SendAsync<T>(T state, Action<T> action)
    Parameters
    Type Name Description
    T state
    Action<T> action
    Returns
    Type Description
    ValueTask
    Type Parameters
    Name Description
    T

    SendAsync<TResult>(Func<TResult>)

    Synchronously executes the specified function if the current thread is the UI thread, otherwise asynchronously posts it to the UI thread for execution and returns a task that contains the result when execution finishes. Tracked as a non-busy task.

    Declaration
    ValueTask<TResult> SendAsync<TResult>(Func<TResult> func)
    Parameters
    Type Name Description
    Func<TResult> func
    Returns
    Type Description
    ValueTask<TResult>
    Type Parameters
    Name Description
    TResult

    SendAsync<T, TResult>(T, Func<T, TResult>)

    Synchronously executes the specified function using the provided state if the current thread is the UI thread, otherwise asynchronously posts them to the UI thread for execution and returns a task that contains the result of the function when execution finishes. Tracked as a non-busy task.

    Declaration
    ValueTask<TResult> SendAsync<T, TResult>(T state, Func<T, TResult> func)
    Parameters
    Type Name Description
    T state
    Func<T, TResult> func
    Returns
    Type Description
    ValueTask<TResult>
    Type Parameters
    Name Description
    T
    TResult

    SendAsync(Func<Task>)

    Synchronously executes the specified function if the current thread is the UI thread, otherwise asynchronously posts it to the UI thread for execution, and then returns a task that completes when the execution of the task returned by the function completes. Tracked as a non-busy task.

    Declaration
    Task SendAsync(Func<Task> taskFunc)
    Parameters
    Type Name Description
    Func<Task> taskFunc
    Returns
    Type Description
    Task

    SendAsync<TResult>(Func<Task<TResult>>)

    Synchronously executes the specified function if the current thread is the UI thread, otherwise asynchronously posts it to the UI thread for execution, and then returns a task that contains the result of the task returned by the function when it completes. Tracked as a non-busy task.

    Declaration
    Task<TResult> SendAsync<TResult>(Func<Task<TResult>> taskFunc)
    Parameters
    Type Name Description
    Func<Task<TResult>> taskFunc
    Returns
    Type Description
    Task<TResult>
    Type Parameters
    Name Description
    TResult
    © Singulink. All rights reserved.