UIThreadReentrancyScope.WaitOnTaskComplete Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.