Click or drag to resize
TaskExtensionsUISafeWaitT Method (FuncTaskT)
Blocks and waits for a task to complete in a way that will not deadlock the UI thread.

Namespace: Microsoft.IoT.DeviceHelpers
Assembly: 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
)

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: T
See Also