Dispatcher.

InvokeAsync<TResult>(Func<TResult>, DispatcherPriority) Method

Summary

Posts a function that will be invoked on the dispatcher thread.
Namespace
Avalonia.Threading
Containing Type
Dispatcher

Syntax

public Task<TResult> InvokeAsync<TResult>(Func<TResult> function, DispatcherPriority priority = Normal)

Type Parameters

Name Description
TResult

Parameters

Name Type Description
function Func<TResult> The method.
priority DispatcherPriority The priority with which to invoke the method.

Return Value

Type Description
Task<TResult>