Share via


UIThreadReentrancyScope.WaitOnTaskComplete Method

Definition

Microsoft internal use only. Wait for task completion. If this is called on the UI thread, it provides a reentrancy point for Thread helper.

public:
 static bool WaitOnTaskComplete(System::Threading::Tasks::Task ^ task, System::Threading::CancellationToken cancel, int ms);
public static bool WaitOnTaskComplete (System.Threading.Tasks.Task task, System.Threading.CancellationToken cancel, int ms);
static member WaitOnTaskComplete : System.Threading.Tasks.Task * System.Threading.CancellationToken * int -> bool
Public Shared Function WaitOnTaskComplete (task As Task, cancel As CancellationToken, ms As Integer) As Boolean

Parameters

task
Task

The task.

cancel
CancellationToken

The cancelation token.

ms
Int32

Returns

True if the task is completed, otherwise false.

Applies to