JoinableTask::JoinAsync Method (CancellationToken)

 

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.

Namespace:   Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

public:
Task^ JoinAsync(
	CancellationToken cancellationToken = null
)

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..

Return to top
Show: