Click or drag to resize
TaskExtensionsUISafeWaitTParam Method (FuncTParam, Task, TParam)
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 void UISafeWait<TParam>(
	Func<TParam, Task> taskFunction,
	TParam param
)

Parameters

taskFunction
Type: SystemFuncTParam, Task
A function that returns the task to wait on.
param
Type: TParam
The parameter to pass to the function.

Type Parameters

TParam
The type of parameter passed to the task.
See Also