InvokeAsync<TResult>(Func<Task<TResult>>) Method

// .NET Core 3.1
// Microsoft.AspNetCore.Components, Version=3.1.0.0, PublicKeyToken=adb9793829ddae60

namespace Microsoft.AspNetCore.Components
{
    public abstract class Dispatcher
    {
        public abstract Task<TResult> InvokeAsync<TResult>(Func<Task<TResult>> workItem);
    }
}

Usage

Metadata

ID
M:Microsoft.AspNetCore.Components.Dispatcher.InvokeAsync``1(System.Func{System.Threading.Tasks.Task{``0}})

Declarations

Platform Version Assembly
.NET 5.0 Microsoft.AspNetCore.Components, Version=5.0.0.0, PublicKeyToken=adb9793829ddae60
.NET + Platform Extensions 5.0 Microsoft.AspNetCore.Components, Version=5.0.0.0, PublicKeyToken=adb9793829ddae60
.NET Core 3.1 Microsoft.AspNetCore.Components, Version=3.1.0.0, PublicKeyToken=adb9793829ddae60