| TaskExtensionsUISafeWait Method (FuncTask) |
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(
Func<Task> taskFunction
)
Public Shared Sub UISafeWait (
taskFunction As Func(Of Task)
)
public:
static void UISafeWait(
Func<Task^>^ taskFunction
)
static member UISafeWait :
taskFunction : Func<Task> -> unit
Parameters
- taskFunction
- Type: SystemFuncTask
A function that returns the task to wait on.
See Also