JoinableTask::JoinAsync Method (CancellationToken)
Visual Studio 2015
Joins any main thread affinity of the caller with the asynchronous operation. This is to avoid deadlocks in case the main thread ultimately synchronously blocks while it is waiting for the operation to complete.
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Parameters
- cancellationToken
-
Type:
System.Threading::CancellationToken
A cancellation token that will exit this method before the task is completed.
Return Value
Type: System.Threading.Tasks::Task^A Task that completes after the asynchronous operation completes and the join is reverted..
Show: