 | IDispatcherServiceInvokeOnUiThreadAsyncT Method (FuncTaskT, Boolean) |
Runs the event dispatcher and awaits for it to complete before returning the results for dispatched events asynchronously.
Namespace: Cimbalino.Toolkit.ServicesAssembly: Cimbalino.Toolkit.Core (in Cimbalino.Toolkit.Core.dll) Version: 2.2.1.0 (2.2.1.0)
SyntaxTask<T> InvokeOnUiThreadAsync<T>(
Func<Task<T>> asyncFunction,
bool force
)
Parameters
- asyncFunction
- Type: SystemFuncTaskT
The async function to call. - force
- Type: SystemBoolean
Force dispatcher invokation even if already on UI thread.
Type Parameters
- T
- The return type.
Return Value
Type:
TaskTThe
Task object representing the asynchronous operation.
Version InformationPortable
Supported in: 4.5
Windows
Supported in: 10.0, 8.1
Windows Phone
Supported in: 8.1
Windows Phone Silverlight
Supported in: 8.1, 8.0
See Also