Skip to content

IMultiThreadedDispatcherService.InvokeAsync method

Runs the action on the UI thread and returns a task that completes when the action has run.

Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Common.Contracts.dll
NuGet Package: Eremex.Common.Contracts

Declaration

public Task InvokeAsync(Action action)

Parameters

name type description
action Action The action to run on the UI thread.

Returns

type description
Task A task that completes once the action has finished running.

See Also