JoinableTask<T>::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 waiting for the operation to complete.

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

public:
Task<T>^ JoinAsync(
	CancellationToken cancellationToken = null
)

Parameters

cancellationToken
Type: System.Threading::CancellationToken

Return Value

Type: System.Threading.Tasks::Task<T>^

Returns Task<TResult>.

Return to top
Show: