ApplicationInvokeAsyncT Method (FuncT) |
Invokes the specified function on the UI thread asynchronously and return the result in a Task.
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public Task<T> InvokeAsync<T>(
Func<T> func
)
Public Function InvokeAsync(Of T) (
func As Func(Of T)
) As Task(Of T)
member InvokeAsync :
func : Func<'T> -> Task<'T>
Parameters
- func
- Type: SystemFuncT
Function to execute and return the value.
Type Parameters
- T
- The type of the result.
Return Value
Type:
TaskTThe task that returns the result of the function.
See Also