| 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.DeviceHelpersAssembly: 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
)
Public Shared Sub UISafeWait(Of TParam) (
taskFunction As Func(Of TParam, Task),
param As TParam
)
public:
generic<typename TParam>
static void UISafeWait(
Func<TParam, Task^>^ taskFunction,
TParam param
)
static member UISafeWait :
taskFunction : Func<'TParam, Task> *
param : 'TParam -> unit
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