| TaskExtensionsUISafeWaitT Method (FuncTaskT) |
Blocks and waits for a task to complete in a way that will not deadlock the UI thread.
Namespace: Microsoft.IoT.DeviceHelpersAssembly: Microsoft.IoT.DeviceHelpers (in Microsoft.IoT.DeviceHelpers.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static T UISafeWait<T>(
Func<Task<T>> taskFunction
)
Public Shared Function UISafeWait(Of T) (
taskFunction As Func(Of Task(Of T))
) As T
public:
generic<typename T>
static T UISafeWait(
Func<Task<T>^>^ taskFunction
)
static member UISafeWait :
taskFunction : Func<Task<'T>> -> 'T
Parameters
- taskFunction
- Type: SystemFuncTaskT
A function that returns the task to wait on.
Type Parameters
- T
-
The type of value returned by the task.
Return Value
Type:
TSee Also