ComponentBase.InvokeAsync Method

Definition

Overloads

InvokeAsync(Action)

Executes the supplied work item on the associated renderer's synchronization context.

InvokeAsync(Func<Task>)

Executes the supplied work item on the associated renderer's synchronization context.

InvokeAsync(Action)

Executes the supplied work item on the associated renderer's synchronization context.

protected:
 System::Threading::Tasks::Task ^ InvokeAsync(Action ^ workItem);
protected System.Threading.Tasks.Task InvokeAsync (Action workItem);
member this.InvokeAsync : Action -> System.Threading.Tasks.Task
Protected Function InvokeAsync (workItem As Action) As Task

Parameters

workItem
Action

The work item to execute.

Returns

Task

Applies to

InvokeAsync(Func<Task>)

Executes the supplied work item on the associated renderer's synchronization context.

protected:
 System::Threading::Tasks::Task ^ InvokeAsync(Func<System::Threading::Tasks::Task ^> ^ workItem);
protected System.Threading.Tasks.Task InvokeAsync (Func<System.Threading.Tasks.Task> workItem);
member this.InvokeAsync : Func<System.Threading.Tasks.Task> -> System.Threading.Tasks.Task
Protected Function InvokeAsync (workItem As Func(Of Task)) As Task

Parameters

workItem
Func<Task>

The work item to execute.

Returns

Task

Applies to