Summary
Queues the specified work to run on the dispatcher thread and returns a proxy for the
task returned by function.
Syntax
Task<TResult> InvokeAsync<TResult>(Func<Task<TResult>> function, DispatcherPriority priority = Normal)
Type Parameters
Parameters
Name |
Type |
Description |
function |
Func<Task<TResult>> |
The work to execute asynchronously. |
priority |
DispatcherPriority |
The priority with which to invoke the method. |
Return Value
Type |
Description |
Task<TResult> |
A task that represents a proxy for the task returned by function. |