Skip to main content

InvokeAsync Method

Overload List

InvokeAsync(Action)Executes the specified Action asynchronously on the thread that the Dispatcher was created on.
InvokeAsync(Func(Task))Executes the specified Func<Task> asynchronously on the thread that the Dispatcher was created on
InvokeAsync(Action, DispatcherPriority)Executes the specified Action asynchronously on the thread that the Dispatcher was created on.
InvokeAsync(Func(Task), DispatcherPriority)Executes the specified Func<Task> asynchronously on the thread that the Dispatcher was created on
InvokeAsync(Action, DispatcherPriority, CancellationToken)Executes the specified Action asynchronously on the thread that the Dispatcher was created on.
InvokeAsync(TResult)(Func(TResult))Executes the specified Func<TResult> asynchronously on the thread that the Dispatcher was created on.
InvokeAsync(TResult)(Func(Task(TResult)))Executes the specified Func<Task<TResult>> asynchronously on the thread that the Dispatcher was created on
InvokeAsync(TResult)(Func(TResult), DispatcherPriority)Executes the specified Func<TResult> asynchronously on the thread that the Dispatcher was created on.
InvokeAsync(TResult)(Func(Task(TResult)), DispatcherPriority)Executes the specified Func<Task<TResult>> asynchronously on the thread that the Dispatcher was created on
InvokeAsync(TResult)(Func(TResult), DispatcherPriority, CancellationToken)Executes the specified Func<TResult> asynchronously on the thread that the Dispatcher was created on.

See Also

Reference

Dispatcher Class
Avalonia.Threading Namespace